summaryrefslogtreecommitdiffstats
path: root/modules.d/busybox/install-busybox.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/busybox/install-busybox.sh')
-rw-r--r--modules.d/busybox/install-busybox.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules.d/busybox/install-busybox.sh b/modules.d/busybox/install-busybox.sh
new file mode 100644
index 00000000..6848a735
--- /dev/null
+++ b/modules.d/busybox/install-busybox.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+if hash busybox; then
+ busybox --install -s
+else
+ . /lib/dracut-lib.sh
+ emergency_shell "Failed to initialize busybox, things will go wrong..."
+fi
+true