You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to update workstations used (among things) by non-technical end-users I need to download and install updates unattended. I'm currently using the following script with a systemd timer:
#!/usr/bin/env ksh93
NM_METERED=$(busctl -j get-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Metered | jq .data)
NM_METERED_NO="2"
NM_METERED_GUESS_NO="4"
if [ "${NM_METERED}" == "${NM_METERED_NO}" ] || [ "${NM_METERED}" == "${NM_METERED_GUESS_NO}" ]; then
dnf5 upgrade --offline -y && \
DNF_SYSTEM_UPGRADE_NO_REBOOT=1 dnf5 offline reboot -y
else
echo "Metered Connection status: '${NM_METERED}'. Not checking for updates."
fi
So I'm using DNF_SYSTEM_UPGRADE_NO_REBOOT with dnf5 offline reboot -y to prevent the system from rebooting immediately but to wait for the user to manually reboot the system. However this flag seems to be undocumented for use with dnf5 offline reboot -y and I'm somewhat weary this behavior might change.
So I was wondering if there is any chance there would ever be a flag added to dnf5 offline to install the updates without doing a reboot immediately?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In order to update workstations used (among things) by non-technical end-users I need to download and install updates unattended. I'm currently using the following script with a systemd timer:
So I'm using
DNF_SYSTEM_UPGRADE_NO_REBOOT
withdnf5 offline reboot -y
to prevent the system from rebooting immediately but to wait for the user to manually reboot the system. However this flag seems to be undocumented for use withdnf5 offline reboot -y
and I'm somewhat weary this behavior might change.So I was wondering if there is any chance there would ever be a flag added to
dnf5 offline
to install the updates without doing a reboot immediately?Beta Was this translation helpful? Give feedback.
All reactions