summaryrefslogtreecommitdiff
path: root/mkinitfs/mkinitfs.post-install
diff options
context:
space:
mode:
authorJohn Vogel <jvogel4@stny.rr.com>2023-04-09 09:01:58 -0400
committerJohn Vogel <jvogel4@stny.rr.com>2023-04-09 09:01:58 -0400
commit4d39182e541d7f850bd09eb91f36e4d1b4ea86d7 (patch)
tree559875633a4ac23bf500e01bc956ee117420425b /mkinitfs/mkinitfs.post-install
downloadmy-aports-4d39182e541d7f850bd09eb91f36e4d1b4ea86d7.tar.gz
local: move aports section into root of repo
Diffstat (limited to 'mkinitfs/mkinitfs.post-install')
-rw-r--r--mkinitfs/mkinitfs.post-install8
1 files changed, 8 insertions, 0 deletions
diff --git a/mkinitfs/mkinitfs.post-install b/mkinitfs/mkinitfs.post-install
new file mode 100644
index 0000000..a2a404b
--- /dev/null
+++ b/mkinitfs/mkinitfs.post-install
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# safety. if nlplug-findfs is missing in the initramfs image we may end up
+# with an unbootable system.
+
+if ! grep -q -w /sbin/nlplug-findfs /etc/mkinitfs/features.d/base.files; then
+ echo "/sbin/nlplug-findfs" >> /etc/mkinitfs/features.d/base.files
+fi