-
Bug
-
Resolution: Done-Errata
-
Undefined
-
rhel-9.3.0
-
None
-
None
-
None
-
rhel-sst-cockpit
-
ssg_front_door
-
None
-
Dev ack
-
False
-
-
None
-
None
-
Pass
-
None
-
None
Description of problem:
setting reboot to never on /etc/dnf/automatic.conf doesn't prevent the system from rebooting after applying updates.
# grep reboot /etc/dnf/automatic.conf reboot = never
Cockpit enables dnf-automatic-install.timer, which creates a drop-in file that cause the system to reboot:
############################################################
systemctl status dnf-automatic-install.timer ● dnf-automatic-install.timer - dnf-automatic-install timer Loaded: loaded (/etc/systemd/system/dnf-automatic-install.timer; enabled; preset: disabled) Drop-In: /etc/systemd/system/dnf-automatic-install.timer.d └─time.conf Active: active (waiting) since Mon 2023-10-30 14:27:25 EDT; 7s ago Until: Mon 2023-10-30 14:27:25 EDT; 7s ago Trigger: Mon 2023-10-30 14:30:00 EDT; 2min 26s left Triggers: ● dnf-automatic-install.service Oct 30 14:27:25 rhel-9-2 systemd[1]: Started dnf-automatic-install timer. [root@rhel-9-2 ~]# systemctl status dnf-automatic-install.service ○ dnf-automatic-install.service - dnf automatic install updates Loaded: loaded (/usr/lib/systemd/system/dnf-automatic-install.service; static) Drop-In: /etc/systemd/system/dnf-automatic-install.service.d └─autoreboot.conf Active: inactive (dead) TriggeredBy: ● dnf-automatic-install.timer ----------- cat /etc/systemd/system/dnf-automatic-install.service.d/autoreboot.conf [Service] ExecStartPost=/bin/sh -ec "if systemctl status --no-pager --lines=100 dnf-automatic-install.service| grep -q ===========$$; then shutdown -r +5 rebooting after applying package updates; fi"
Security updates were applied and reboot was schedule:
[root@rhel-9-2 ~]# journalctl -u dnf-automatic-install.service | tail Oct 30 14:31:29 rhel-9-2 dnf-automatic[21425]: 3.2 M Oct 30 14:31:29 rhel-9-2 dnf-automatic[21425]: Transaction Summary Oct 30 14:31:29 rhel-9-2 dnf-automatic[21425]: ================================================================================ Oct 30 14:31:29 rhel-9-2 dnf-automatic[21425]: Install 4 Packages Oct 30 14:31:29 rhel-9-2 dnf-automatic[21425]: Upgrade 38 Packages Oct 30 14:31:29 rhel-9-2 dnf-automatic[21425]: Updates completed at Mon Oct 30 14:31:29 2023 Oct 30 14:31:29 rhel-9-2 shutdown[34055]: Reboot scheduled for Mon 2023-10-30 14:36:29 EDT, use 'shutdown -c' to cancel. <================= Oct 30 14:31:29 rhel-9-2 systemd[1]: dnf-automatic-install.service: Deactivated successfully.
STEPS To REPLICATE:
1. Install dnf-automatic
1a. edit /etc/dnf/automatic.conf and add 'reboot = never'. NOTE: reboot = never is the default value
2. Install cockpit and enable automatic updates from web consoles.
Expected results: Updates install but reboot should not be schedule.
Current results: patches are being applied and reboot is being schedule, event thought reboot was disabled via /etc/dnf/automatic.conf
- links to
-
RHBA-2023:120853 cockpit bug fix and enhancement update