ubuntu/+source/needrestart:ubuntu/oracular

Last commit made on 2024-05-07
Get this branch:
git clone -b ubuntu/oracular 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/oracular
Repository:
lp:ubuntu/+source/needrestart

Recent commits

b3ddb16... by Chris Peterson

update-maintainer

ce377b3... by Chris Peterson

changelog

2831d94... by Chris Peterson

merge-changelogs

222bd12... 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

58aa6c4... by Chris Peterson

d/t/*.py: deprecated APIs and runner performance

- Migrate off some deprecated libtmux APIs
- make tests less sensible to performance issues on the runners

3f1d017... by Chris Peterson

d/t: move tests to Tests instead of Test-Command

9e9e811... by Chris Peterson

* d/t/c: prompt-reboot: mark tests needing VM

Mark tests as needing a VM since needrestart doesn't do kernel
detection when within a container

785ab02... 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.

e045f23... 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.

e9f9241... 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)

Restore default behaviour wrt TTY detection

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