diff --git a/test/boot-stage-2-init.sh b/test/boot-stage-2-init.sh index 0c7a105c3a1..bda2bfdb64d 100644 --- a/test/boot-stage-2-init.sh +++ b/test/boot-stage-2-init.sh @@ -21,6 +21,8 @@ done # Mount special file systems, initialise required directories. +rm -f /etc/mtab + if test -z "@readOnlyRoot@"; then #rootDev=$(grep "/dev/.* / " /proc/mounts | sed 's/^\([^ ]*\) .*/\1/') mount -o remount,rw /dontcare / # !!! check for failure diff --git a/test/installer.sh b/test/installer.sh index be20b3095b8..8e438f5388c 100644 --- a/test/installer.sh +++ b/test/installer.sh @@ -118,7 +118,7 @@ chroot $mountPoint @nix@/bin/nix-pull $nixpkgsURL/MANIFEST chroot $mountPoint @nix@/bin/nix-env \ -p /nix/var/nix/profiles/system \ - -f "/mnt/$nixExpr" -i system-configuration + -f "/mnt/$nixExpr" -i -A systemConfiguration # Grub needs a mtab.