* Remove /etc/mtab.
svn path=/nixu/trunk/; revision=7094
This commit is contained in:
parent
183ed7a5ea
commit
c8c62dba0b
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user