summaryrefslogtreecommitdiffstats
path: root/builder
diff options
context:
space:
mode:
authorJonathan Bauer2019-08-08 13:51:34 +0200
committerJonathan Bauer2019-08-08 13:51:34 +0200
commitc983ad1e01cb67bdbd3bd3bb8e8fbc277ea98023 (patch)
treec0d63f33adde4c833dd367b2bded25823b0f5323 /builder
parent[slx-network] keep a copy of the network files (diff)
downloadsystemd-init-c983ad1e01cb67bdbd3bd3bb8e8fbc277ea98023.tar.gz
systemd-init-c983ad1e01cb67bdbd3bd3bb8e8fbc277ea98023.tar.xz
systemd-init-c983ad1e01cb67bdbd3bd3bb8e8fbc277ea98023.zip
[busybox] only install if binary is there
Diffstat (limited to 'builder')
-rw-r--r--builder/modules.d/busybox/install-busybox.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/builder/modules.d/busybox/install-busybox.sh b/builder/modules.d/busybox/install-busybox.sh
index 888d8afc..6848a735 100644
--- a/builder/modules.d/busybox/install-busybox.sh
+++ b/builder/modules.d/busybox/install-busybox.sh
@@ -1,9 +1,9 @@
#!/bin/bash
-if ! hash busybox; then
+if hash busybox; then
+ busybox --install -s
+else
. /lib/dracut-lib.sh
emergency_shell "Failed to initialize busybox, things will go wrong..."
fi
-
-busybox --install -s
true