Skip to content

Commit

Permalink
feat: Fix AccountsService race
Browse files Browse the repository at this point in the history
* fix var not available before AccountsService

* fix incorrect link target
  • Loading branch information
taukakao authored Dec 1, 2023
1 parent da13227 commit 03083c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ func (s *ABSystem) GenerateMountpointsSystemDUnit(rootPath string, root ABRootPa
Description=Mount partitions
Requires=%s.target
After=%s.target
Before=nss-user-lookup.target
[Service]
Type=oneshot
Expand Down Expand Up @@ -468,7 +469,7 @@ ExecStart=%s
return err
}

err = os.Symlink(rootPath+MountUnitDir+MountUnitFile, rootPath+fmt.Sprintf(SystemDTargetDir, depTarget)+MountUnitFile)
err = os.Symlink(".."+MountUnitFile, rootPath+fmt.Sprintf(SystemDTargetDir, depTarget)+MountUnitFile)
if err != nil {
PrintVerbose("ABSystem.GenerateMountpointsSystemDUnit:err(4): %s", err)
return err
Expand Down

0 comments on commit 03083c5

Please sign in to comment.