Skip to content

Commit b5916bf

Browse files
Merge pull request #27606 from Luap99/machine-mount
pkg/machine: make mount units hook into local-fs
2 parents 4ca9158 + 2000309 commit b5916bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/machine/apple/apple.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func GenerateSystemDFilesForVirtiofsMounts(mounts []machine.VirtIoFs) ([]ignitio
7878
mountUnit.Add("Mount", "Where", "%s")
7979
mountUnit.Add("Mount", "Type", "virtiofs")
8080
mountUnit.Add("Mount", "Options", fmt.Sprintf("context=\"%s\"", machine.NFSSELinuxContext))
81-
mountUnit.Add("Install", "WantedBy", "multi-user.target")
81+
mountUnit.Add("Install", "WantedBy", "local-fs.target")
8282
mountUnitFile, err := mountUnit.ToString()
8383
if err != nil {
8484
return nil, err
@@ -102,7 +102,7 @@ func GenerateSystemDFilesForVirtiofsMounts(mounts []machine.VirtIoFs) ([]ignitio
102102
immutableRootOff.Add("Service", "Type", "oneshot")
103103
immutableRootOff.Add("Service", "ExecStart", "chattr -i /")
104104

105-
immutableRootOff.Add("Install", "WantedBy", "remote-fs-pre.target")
105+
immutableRootOff.Add("Install", "WantedBy", "local-fs-pre.target")
106106
immutableRootOffFile, err := immutableRootOff.ToString()
107107
if err != nil {
108108
return nil, err
@@ -118,12 +118,12 @@ func GenerateSystemDFilesForVirtiofsMounts(mounts []machine.VirtIoFs) ([]ignitio
118118
immutableRootOn := parser.NewUnitFile()
119119
immutableRootOn.Add("Unit", "Description", "Set / back to immutable after mounts are done")
120120
immutableRootOn.Add("Unit", "DefaultDependencies", "no")
121-
immutableRootOn.Add("Unit", "After", "remote-fs.target")
121+
immutableRootOn.Add("Unit", "After", "local-fs.target")
122122

123123
immutableRootOn.Add("Service", "Type", "oneshot")
124124
immutableRootOn.Add("Service", "ExecStart", "chattr +i /")
125125

126-
immutableRootOn.Add("Install", "WantedBy", "remote-fs.target")
126+
immutableRootOn.Add("Install", "WantedBy", "local-fs.target")
127127
immutableRootOnFile, err := immutableRootOn.ToString()
128128
if err != nil {
129129
return nil, err

0 commit comments

Comments
 (0)