aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-07-10 13:25:26 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-07-14 13:17:13 +0200
commitd6f303d4e5e80c4e46f131f5bac1f6be5cda433e (patch)
treea0a5353aebca09ed977feb7f17a17b8b53de62c1
parentc4659802207d53516fb68aef94f9c133344b4172 (diff)
downloadguix-d6f303d4e5e80c4e46f131f5bac1f6be5cda433e.tar
guix-d6f303d4e5e80c4e46f131f5bac1f6be5cda433e.tar.gz
etc: Enable mount unit only if it exists.
* etc/guix-install.sh (sys_enable_guix_daemon): Enable gnu-store.mount only if it was actually installed. Reported by peanutbutterandc on #guix.
-rwxr-xr-xetc/guix-install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index bf15aede21..54bd813efd 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -350,6 +350,8 @@ sys_enable_guix_daemon()
cp "${ROOT_HOME}/.config/guix/current/lib/systemd/system/gnu-store.mount" \
/etc/systemd/system/;
chmod 664 /etc/systemd/system/gnu-store.mount;
+ systemctl daemon-reload &&
+ systemctl enable gnu-store.mount;
fi
cp "${ROOT_HOME}/.config/guix/current/lib/systemd/system/guix-daemon.service" \
@@ -367,8 +369,8 @@ sys_enable_guix_daemon()
fi;
systemctl daemon-reload &&
- systemctl start gnu-store.mount guix-daemon &&
- systemctl enable gnu-store.mount guix-daemon; } &&
+ systemctl enable guix-daemon &&
+ systemctl start guix-daemon; } &&
_msg "${PAS}enabled Guix daemon via systemd"
;;
sysv-init)