summaryrefslogtreecommitdiff
diff options
authorAlberto Mardegan <alberto.mardegan@canonical.com>2021-09-03 13:26:27 +0300
committerAlberto Mardegan <alberto.mardegan@canonical.com>2021-09-03 13:26:27 +0300
commit71f6b3484a530d1360cd427f37725f3aa4cda7e8 (patch)
treeea401f8630a189aeb92e02e47c4242f49a16f867
parent45ed587bf40a5d5529cc7155901420bfa823c970 (diff)
don't specify rootDir
-rw-r--r--systemd/systemd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/systemd.go b/systemd/systemd.go
index a84cb9d5e2..4329a03d7d 100644
--- a/systemd/systemd.go
+++ b/systemd/systemd.go
@@ -337,7 +337,7 @@ func newSystemdReal(kind Kind, rootDir string, mode InstanceMode, rep Reporter)
// New returns a Systemd that uses the default root directory and omits
// --root argument when executing systemctl.
func New(mode InstanceMode, rep Reporter) Systemd {
- return newSystemd(FullImplementation, dirs.GlobalRootDir, mode, rep)
+ return newSystemd(FullImplementation, "", mode, rep)
}
// NewUnderRoot returns a Systemd that operates on the given rootdir.