File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ lib.mkIf config.microvm.guest.enable {
38
38
"/nix/store" = {
39
39
device = roStoreDisk ;
40
40
fsType = storeDiskType ;
41
- options = [ "x-systemd.after =systemd-modules-load.service" ] ;
41
+ options = [ "x-systemd.requires =systemd-modules-load.service" ] ;
42
42
neededForBoot = true ;
43
43
} ;
44
44
}
@@ -65,7 +65,7 @@ lib.mkIf config.microvm.guest.enable {
65
65
"/nix/.ro-store" = {
66
66
device = roStoreDisk ;
67
67
fsType = storeDiskType ;
68
- options = [ "x-systemd.after =systemd-modules-load.service" ] ;
68
+ options = [ "x-systemd.requires =systemd-modules-load.service" ] ;
69
69
neededForBoot = true ;
70
70
} ;
71
71
}
@@ -115,8 +115,8 @@ lib.mkIf config.microvm.guest.enable {
115
115
device = tag ;
116
116
fsType = proto ;
117
117
options = {
118
- "virtiofs" = [ "defaults" "x-systemd.after =systemd-modules-load.service" ] ;
119
- "9p" = [ "trans=virtio" "version=9p2000.L" "msize=65536" ] ;
118
+ "virtiofs" = [ "defaults" "x-systemd.requires =systemd-modules-load.service" ] ;
119
+ "9p" = [ "trans=virtio" "version=9p2000.L" "msize=65536" "x-systemd.requires=systemd-modules-load.service " ] ;
120
120
} . ${ proto } ;
121
121
} // lib . optionalAttrs ( source == "/nix/store" || mountPoint == config . microvm . writableStoreOverlay ) {
122
122
neededForBoot = true ;
@@ -139,7 +139,7 @@ lib.mkIf config.microvm.guest.enable {
139
139
before = [ "initrd-fs.target" ] ;
140
140
requires = [ "rw-store.service" ] ;
141
141
after = [ "rw-store.service" ] ;
142
- unitConfig . RequiresMountsFor = "${ roStore } " ;
142
+ unitConfig . RequiresMountsFor = "/sysroot/ ${ roStore } " ;
143
143
} ] ;
144
144
services . rw-store = {
145
145
unitConfig = {
You can’t perform that action at this time.
0 commit comments