]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Preffer /sbin/chroot over /usr/sbin/chroot.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 24 Jun 2004 13:26:32 +0000 (13:26 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 24 Jun 2004 13:26:32 +0000 (13:26 +0000)
svn-id: @4240

geninitrd

index 11c34cf053217e10556014fd3e33de5d9a5490c1..32b74b688e39844b8745ef4b54ada17d533939d6 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -1076,6 +1076,7 @@ EOF
        chmod 755 "$MNTIMAGE/bin/setdhcp"
        echo "cd /newroot" >> "$s"
        echo "pivot_root . initrd" >> "$s"
+       echo "exec /sbin/chroot . /sbin/init -i < dev/console > dev/console 2>&1" >> "$s"
        echo "exec /usr/sbin/chroot . /sbin/init -i < dev/console > dev/console 2>&1" >> "$s"
 fi
 
@@ -1118,7 +1119,8 @@ if is_yes "$uselvm" ; then
                echo "umount /proc" >> "$s"
                echo "cd /newroot" >> "$s"
                echo "pivot_root . initrd" >> "$s"
-               echo "exec /usr/sbin/chroot . /sbin/init -i < dev/console > dev/console 2>&1" >> "$s"
+               echo "exec /sbin/chroot . /sbin/init -i < dev/console > dev/console 2>&1" >> "$s"
+               echo "exec /usr/sbin/chroot . /sbin/init -i < dev/console > dev/console 2>&1" >> "$s"
        fi
 fi
 
This page took 0.144236 seconds and 4 git commands to generate.