* Disable the test to see whether $stage2Init exists. For some

unfathomable reason this test fails on EC2 if it's a symlink
  (despite the -L test).  I give up.

svn path=/nixos/trunk/; revision=22676
This commit is contained in:
Eelco Dolstra 2010-07-20 13:49:04 +00:00
parent 1a5c18d1b6
commit 63962dd7d6

View File

@ -291,10 +291,10 @@ echo /sbin/modprobe > /proc/sys/kernel/modprobe
# current root. It also moves the /proc, /sys and /dev mounts over to
# the new root. Note that $stage2Init might be an absolute symlink,
# in which case "-e" won't work because we're not in the chroot yet.
if ! test -e "$targetRoot/$stage2Init" -o -L "$targetRoot/$stage2Init"; then
echo "stage 2 init script not found"
fail
fi
#if ! test -e "$targetRoot/$stage2Init" -o -L "$targetRoot/$stage2Init"; then
# echo "stage 2 init script ($targetRoot/$stage2Init) not found"
# fail
#fi
mkdir -m 0755 -p $targetRoot/proc $targetRoot/sys $targetRoot/dev