* Allow runtime changes to boot.devShmSize and friends.

svn path=/nixos/trunk/; revision=34160
This commit is contained in:
Eelco Dolstra 2012-05-17 19:33:55 +00:00
parent e9e6885d3b
commit f889ebc488

View File

@ -144,6 +144,13 @@ in
mv /usr/bin/.env.tmp /usr/bin/env # atomically replace /usr/bin/env
'';
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
'';
};
}