summaryrefslogtreecommitdiff
path: root/system/mkinitfs/mkinitfs.post-install
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-07 22:29:03 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-07 22:29:03 -0500
commit6f3a6da561a3e1a6cdb1aa4765610773e13c2dca (patch)
tree401bd3eea285bfe240a664f04a2792491b1fa74e /system/mkinitfs/mkinitfs.post-install
parente070336d60ba45aa1f8cb596bfb1c820a1d9734d (diff)
downloadpackages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.tar.gz
packages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.tar.bz2
packages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.tar.xz
packages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.zip
system/mkinitfs: new package
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