Remove '.service' from systemd enable loop as unit_name already contains .service in name
This commit is contained in:
parent
8d7d13fb17
commit
cba9e8f5ca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user