@@ -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