From cba9e8f5caa3f0e31d1c14492a462e61609608ed Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Fri, 24 Jul 2015 04:39:26 -0400 Subject: [PATCH] Remove '.service' from systemd enable loop as unit_name already contains .service in name --- rpm_spec/core-vm.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index e42a629..c8b1c4f 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -646,7 +646,7 @@ ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target grep '^[[:space:]]*[^#;]' /lib/systemd/system-preset/75-qubes-vm.preset | while read action unit_name; do case "$action" in (disable) - if [ -f /lib/systemd/system/$unit_name.service ]; then + if [ -f /lib/systemd/system/$unit_name ]; then if ! fgrep -q '[Install]' /lib/systemd/system/$unit_name; then # forcibly disable ln -sf /dev/null /etc/systemd/system/$unit_name