3
0
Fork 0
forked from mirrors/nixpkgs

* Remove /etc/mtab.

svn path=/nixu/trunk/; revision=7094
This commit is contained in:
Eelco Dolstra 2006-11-23 17:27:43 +00:00
parent 183ed7a5ea
commit c8c62dba0b
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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.