Verification for noble:
# create instance
catred@canonical:~$ gcloud compute instances create lp2063442 --image-project
ubuntu-os-cloud --image ubuntu-minimal-2404-noble-amd64-v20240709
--metadata=startup-script='#! /bin/bash
date | cat >> /tmp/lp2063442
'
# remove fix
catred@lp2063442:~$ sudo rm /etc/needrestart/conf.d/google-guest-agent.conf
## add -proposed
catred@lp2063442:~$ sudo apt install needrestart
[...]
catred@lp2063442:~$ sudo reboot now
# verify needrestart is updated
catred@lp2063442:~$ apt-cache policy needrestart
needrestart:
Installed: 3.6-7ubuntu4
Candidate: 3.6-7ubuntu4
Version table:
3.6-7ubuntu4.1 100
100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
*** 3.6-7ubuntu4 500
500 http://us-central1.gce.archive.ubuntu.com/ubuntu noble/main amd64
Packages
100 /var/lib/dpkg/status
# validate that startup scripts did not restart
catred@lp2063442:~$ sudo journalctl -u google-startup-scripts.service
[...]
-- Boot 288657b0e0c94b4c9a0ebf316f626303 --
Jul 15 13:09:47 lp2063442 systemd[1]: Starting google-startup-scripts.service -
Google Compute Engine Startup Scripts...
Jul 15 13:09:47 lp2063442 google_metadata_script_runner[738]: Starting startup
scripts (version 20240213.00-0ubuntu3.1).
Jul 15 13:09:47 lp2063442 google_metadata_script_runner[738]: Found
startup-script in metadata.
Jul 15 13:09:47 lp2063442 google_metadata_script_runner[738]: startup-script
exit status 0
Jul 15 13:09:47 lp2063442 google_metadata_script_runner[738]: Finished running
startup scripts.
Jul 15 13:09:47 lp2063442 systemd[1]: google-startup-scripts.service:
Deactivated successfully.
Jul 15 13:09:47 lp2063442 systemd[1]: Finished google-startup-scripts.service -
Google Compute Engine Startup Scripts.
catred@lp2063442:~$ cat /tmp/lp2063442
Mon Jul 15 13:09:47 UTC 2024
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2063442
Title:
needrestart on Ubuntu 24.04 is restarting google-guest-agent startup
and shutdown scrips on reinstall but they should not be restarted
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/2063442/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs