ubuntu/+source/needrestart:ubuntu/noble

Last commit made on 2024-04-04
Get this branch:
git clone -b ubuntu/noble https://git.launchpad.net/ubuntu/+source/needrestart
Members of git-ubuntu import can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
ubuntu/noble
Repository:
lp:ubuntu/+source/needrestart

Recent commits

b0b6a53... by Chad Smith

update changelog

a985d05... by Chad Smith

d/p/ubuntu-avoid-restart-cloud-final.patch

Ensure needrestart skips automatic restart of cloud-init systemd
services representing the cloud-init boot stages:
- cloud-init-local.service
- cloud-init.service
- cloud-config.service
- cloud-final.service

A restart of these oneshot services may cause cloud-init to be unable to
setup apt repositories or install packages requested by cloud-init user-data.

Version 3.6-7ubuntu1 introduced a downstream change in behavior for Ubuntu
where needrestart will automatically restart services across
non-interactive apt-get dist-upgrade.

When cloud-init user-data provides both package_upgrade: true and requests
for either package installs or PPA setup, cloud-final.service will
call apt-get dist-upgrade in non-interactive mode and follow up with any
number of add-apt-repository or apt-get install commands. If cloud-init
is also a package being upgraded by dist-upgrade, needrestart to suggests that
the running cloud-final.service is a candidate for automatic restart.

This results in a SIGTERM to cloud-final.service that prevents the rest
of cloud-init's APT configuration from completing.

Given that /etc/cloud/cloud.cfg allows for the package_update_upgrade_install
module to be configured to run in other boot stages, we need to skip
restart on any of the 4 cloud-init boot stage services mentioned above.

LP: #2059337

2760b7a... by Simon Chopin

3.6-7ubuntu3 (patches unapplied)

Imported using git-ubuntu import.

09a72d0... by Simon Chopin

changelog

a23d1dc... by Simon Chopin

d/t: explicitly set the debconf frontend.

autopkgtests set the frontend to noninteractive, but we actually want to
test what happens with the default frontend to check that the flow
doesn't get interrupted.

2311202... by Simon Chopin

d/t/control: add missing libc6-dev dependency

We're building a small C helper to mock out uname(), and of course it
needs the glibc headers available.

ab1dbfc... by Simon Chopin

Restore default behaviour wrt TTY detection

We're overriding it anyway later on in Ubuntu mode by default, unless a
UI is explicitly given.

c04da56... by Simon Chopin

changelog

6a5760f... by Simon Chopin

update-maintainer

0ee54f2... by Simon Chopin

d/p/ubuntu-mode.patch: introduce a specific mode when running as APT hook

By default we want needrestart to be quieter, restart services that need
it, and use the standard protocol to notify that a reboot is required.

(LP: #1987449, LP: #2004203, LP: #2055433, LP: #2055437)