3
0
Fork 0
forked from mirrors/nixpkgs

qemu-vm module: fix boot.tmpOnTmpfs

This option caused systemd to mount /tmp on top of /tmp/{xchg,shared}.

Fixes #21490.
This commit is contained in:
Nikolay Amiantov 2017-02-03 15:00:34 +03:00
parent 5b759293e0
commit 9eb540b807

View file

@ -443,6 +443,13 @@ in
options = [ "trans=virtio" "version=9p2000.L" "veryloose" ];
neededForBoot = true;
};
"/tmp" = mkIf config.boot.tmpOnTmpfs
{ device = "tmpfs";
fsType = "tmpfs";
neededForBoot = true;
# Sync with systemd's tmp.mount;
options = [ "mode=1777" "strictatime" "nosuid" "nodev" ];
};
"/tmp/xchg" =
{ device = "xchg";
fsType = "9p";