summaryrefslogtreecommitdiff
path: root/system/mkinitfs/mkinitfs.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'system/mkinitfs/mkinitfs.post-install')
-rw-r--r--system/mkinitfs/mkinitfs.post-install8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/mkinitfs/mkinitfs.post-install b/system/mkinitfs/mkinitfs.post-install
new file mode 100644
index 000000000..a2a404b09
--- /dev/null
+++ b/system/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