From 63962dd7d69d5fb1859a3372b80be7b4e0ce30dc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 20 Jul 2010 13:49:04 +0000 Subject: [PATCH] * 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 --- modules/system/boot/stage-1-init.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/system/boot/stage-1-init.sh b/modules/system/boot/stage-1-init.sh index 727322c6b402..0c9f1d46b2f8 100644 --- a/modules/system/boot/stage-1-init.sh +++ b/modules/system/boot/stage-1-init.sh @@ -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