Dominique Leuenberger 2023-06-20 14:39:59 +00:00 committed by Git OBS Bridge
commit fcdffe9091
2 changed files with 15 additions and 2 deletions

View File

@ -69,7 +69,7 @@ apply_preset_state_changes () {
exec 3<&-
done
if test -x /usr/bin/systemctl ; then
/usr/bin/systemctl list-unit-files "$GLOBAL"
/usr/bin/systemctl list-unit-files $GLOBAL
fi >systemd_preset-states.rpm-tmp
exec 3<systemd_preset-states.rpm-tmp
read -u3 PAD
@ -99,7 +99,7 @@ apply_preset_state_changes () {
fi
if test "$ENABLE_OLD" != "$ENABLE_NEW" ; then
echo "Resetting $SERVICE to the new default: $ENABLE_NEW"
/usr/bin/systemctl preset "$GLOBAL" "$SERVICE" || :
/usr/bin/systemctl preset $GLOBAL "$SERVICE" || :
fi
done
exec 3<&-

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Jun 20 08:42:27 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
- Fix another case of systemctl being called with an empty
argument. This if a preemptive fix for a similar issue to
bsc#1212496.
-------------------------------------------------------------------
Mon Jun 19 12:48:36 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Don't call systemctl list-unit-files with an empty argument,
this will break enabling of system unit files [bsc#1212496]
-------------------------------------------------------------------
Fri Jun 9 14:22:41 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>