mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Fix init= stage 1 test
This commit is contained in:
parent
e884dc32c5
commit
ba7c80eefb
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ echo /sbin/modprobe > /proc/sys/kernel/modprobe
|
||||||
# Start stage 2. `switch_root' deletes all files in the ramfs on the
|
# Start stage 2. `switch_root' deletes all files in the ramfs on the
|
||||||
# current root. Note that $stage2Init might be an absolute symlink,
|
# current root. Note that $stage2Init might be an absolute symlink,
|
||||||
# in which case "-e" won't work because we're not in the chroot yet.
|
# 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
|
if ! test -e "$targetRoot/$stage2Init" -o ! -L "$targetRoot/$stage2Init"; then
|
||||||
echo "stage 2 init script ($targetRoot/$stage2Init) not found"
|
echo "stage 2 init script ($targetRoot/$stage2Init) not found"
|
||||||
fail
|
fail
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue