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