Skip to content

Commit e31df08

Browse files
committed
fix: allow using virtiofs share as writable /nix/store overlay
1 parent 67c23f6 commit e31df08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nixos-modules/microvm/mounts.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ lib.mkIf config.microvm.guest.enable {
8282
"lowerdir=${roStore}"
8383
"upperdir=${writableStoreOverlay}/store"
8484
"workdir=${writableStoreOverlay}/work"
85+
"userxattr" # FIXME: only when writableStoreOverlay is a virtiofs share
8586
];
8687
depends = [ roStore writableStoreOverlay ];
8788
};
@@ -136,6 +137,7 @@ lib.mkIf config.microvm.guest.enable {
136137
"lowerdir=/sysroot${roStore}"
137138
"upperdir=/sysroot${writableStoreOverlay}/store"
138139
"workdir=/sysroot${writableStoreOverlay}/work"
140+
"userxattr" # FIXME: only when writableStoreOverlay is a virtiofs share
139141
];
140142
wantedBy = [ "initrd-fs.target" ];
141143
before = [ "initrd-fs.target" ];

0 commit comments

Comments
 (0)