Project

General

Profile

Actions

Bug #28666

closed

Required reboot detection on APT systems requires the presence of unnatended-upgrades

Bug #28666: Required reboot detection on APT systems requires the presence of unnatended-upgrades

Added by Alexis Mousset 8 months ago. Updated 7 months ago.

Status:
Released
Priority:
1 (highest)
Category:
Module - system-updates
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

Description

We currently rely on the presence of /var/run/reboot-required, but it seem to only work when unnatended-upgrades is installed (as it provides the hook), cf. https://www.reddit.com/r/debian/comments/1hy0h98/comment/m6eyz5x/.

We should instead rely directly on needrestart directly as we do for services.

# needrestart -b -r l
NEEDRESTART-VER: 3.11
NEEDRESTART-KCUR: 6.12.48+deb13-amd64
NEEDRESTART-KEXP: 6.12.74+deb13+1-amd64
NEEDRESTART-KSTA: 3

Files

clipboard-202604161726-wgenq.png (50.5 KB) clipboard-202604161726-wgenq.png François ARMAND, 2026-04-16 17:26
clipboard-202604161726-wgenq.png

Updated by Alexis Mousset 8 months ago Actions #1

  • Subject changed from Required reboot detection on APT systems seems broken to Required reboot detection on APT systems requires the presence of unnatended-upgrades

Updated by Alexis Mousset 8 months ago Actions #2

  • Priority changed from N/A to To review

Updated by Alexis Mousset 8 months ago Actions #3

  • Description updated (diff)

Updated by Alexis Mousset 8 months ago Actions #4

  • Assignee set to Martin HART

Updated by Vincent MEMBRÉ 8 months ago Actions #5

  • Target version changed from 9.0.5 to 9.0.6

Updated by Nicolas CHARLES 8 months ago Actions #6

  • Priority changed from To review to 1 (highest)

We need to document clearly in the relase note that there is a big change in behaviour in a patch release

Updated by Martin HART 8 months ago Actions #7

  • Status changed from New to In progress

Updated by Martin HART 8 months ago Actions #8

  • Status changed from In progress to Pending technical review
  • Assignee changed from Martin HART to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder/pull/7056

Updated by Anonymous 7 months ago Actions #9

  • Status changed from Pending technical review to Pending release

Updated by François ARMAND 7 months ago Actions #10

clipboard-202604161726-wgenq.png

Works on debian 13

Updated by Vincent MEMBRÉ 7 months ago Actions #11

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 9.0.6 and 9.1.1 which were released today.

Actions

Also available in: PDF Atom