needrestart: bump the debconf severity to medium
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
needrestart (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Currently, by default needrestart is installed on Server installs and kicks in at the end of apt commands changing the state of the system (e.g. upgrades). In its default configuration, it will send a notification through debconf if the user needs to reboot (e.g. kernel upgrade, microcode update), and will use a multiselect debconf prompt to restart services selectively.
The default selection of services *not* to be restarted is based upon a configurable blacklist (see /etc/needrestar
> If needrestart detects systemd it will assume that libpam-systemd is used and relies on cgroup names to detect if a process belongs to a user session or a daemon
I'm assuming we're only considering scenarios where libpam-systemd is used?
The issue here is that the debconf prompts used by needrestart have a 'critical' severity, which means they'll block the process if debconf is in interactive mode. To avoid this, there are two possibilities:
1/ configure needrestart to use the stdout backend by default. This means the services will *not* be restarted (needrestart defaults to not doing anything when using a non-interactive backend)
2/ reduce the debconf severity to 'normal' or below so that its prompts don't appear by default, and the default choices are used instaed.
I'd rather have the services restarted by default, but the issue is that users would lose the reboot notifications altogether.
I attached my proposed debdiff for reference, but I'm mostly looking for opinions on the matter :)