]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
only create the /bin/sh symlink to bash, if it does not exist yet
authorHarald Hoyer <harald@redhat.com>
Tue, 24 Mar 2009 10:29:03 +0000 (11:29 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 24 Mar 2009 10:29:03 +0000 (11:29 +0100)
modules.d/99base/install

index e61ababc36833f28a9c019261c4fba7985d68657..c0ce2339fb4142eeda1181249fe980d6c707370d 100755 (executable)
@@ -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"