From 424e27a9b75fb6a0cf37b52b5abf2270683807d6 Mon Sep 17 00:00:00 2001 From: Tau Date: Thu, 30 Nov 2023 20:26:22 +0100 Subject: [PATCH 1/2] fix var not available before AccountsService --- core/system.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/system.go b/core/system.go index dbf540e6..e0971b6d 100644 --- a/core/system.go +++ b/core/system.go @@ -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 From c130034ed3ee865677cd0a3fa3e086a092e7b7ab Mon Sep 17 00:00:00 2001 From: Tau Date: Fri, 1 Dec 2023 12:38:14 +0000 Subject: [PATCH 2/2] fix incorrect link target --- core/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/system.go b/core/system.go index e0971b6d..7d8e2787 100644 --- a/core/system.go +++ b/core/system.go @@ -469,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