From: Harald Hoyer Date: Tue, 24 Mar 2009 10:29:03 +0000 (+0100) Subject: only create the /bin/sh symlink to bash, if it does not exist yet X-Git-Tag: 0.1~282^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef085215556b745a9d7dbcfb54293d5a68a0a0a4;p=thirdparty%2Fdracut.git only create the /bin/sh symlink to bash, if it does not exist yet --- diff --git a/modules.d/99base/install b/modules.d/99base/install index e61ababc3..c0ce2339f 100755 --- a/modules.d/99base/install +++ b/modules.d/99base/install @@ -1,5 +1,6 @@ #!/bin/bash -dracut_install mount mknod mkdir modprobe pidof sleep chroot echo sed sh ls flock +dracut_install mount mknod mkdir modprobe pidof sleep chroot echo sed bash ls flock +[ -e "${initdir}/bin/sh" ] || (ln -s bash "${initdir}/bin/sh" || :) # install our scripts and hooks inst "$moddir/init" "/init" inst "$moddir/switch_root" "/sbin/switch_root"