* Allow runtime changes to boot.devShmSize and friends.
svn path=/nixos/trunk/; revision=34160
This commit is contained in:
parent
e9e6885d3b
commit
f889ebc488
@ -144,6 +144,13 @@ in
|
|||||||
mv /usr/bin/.env.tmp /usr/bin/env # atomically replace /usr/bin/env
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user