Don't do readlink() on every mount point when remounting /dev etc.

Doing so causes the activation script to hang if (say) an NFS mount
point is unreachable.
This commit is contained in:
Eelco Dolstra 2013-01-02 18:23:19 +01:00
parent 7e70cffc45
commit 9aa69885f0

@ -145,9 +145,9 @@ in
system.activationScripts.tmpfs =
''
${pkgs.utillinux}/bin/mount -o "remount,size=${config.boot.devSize}" /dev
${pkgs.utillinux}/bin/mount -o "remount,size=${config.boot.devShmSize}" /dev/shm
${pkgs.utillinux}/bin/mount -o "remount,size=${config.boot.runSize}" /run
${pkgs.utillinux}/bin/mount -o "remount,size=${config.boot.devSize}" none /dev
${pkgs.utillinux}/bin/mount -o "remount,size=${config.boot.devShmSize}" none /dev/shm
${pkgs.utillinux}/bin/mount -o "remount,size=${config.boot.runSize}" none /run
'';
};