Skip to content

Commit 5f51fd2

Browse files
committed
scripts/bringup_guestfs.sh: uninstall unattended-upgrades on debian guests
Be sure to remove unattended-upgrades when taking the downloaded image from Debian to build our base image which we will use to launch guests with. The package unattended-upgrades [0] is one of the biggest pain points for continous integeration on kdevops, where we race against package installations being mucked behind our back. So let's just be extremely vocal about it being a requirement to not be installed on debian systems and complain and ensure systems don't have it. Even though we have already in place devconfig rules to remove it, upon first bringup you can still race against it! If you do have an old guest with it, you should just remove the old guest and re-do your new guest as otherwise you will encounter many odd silly bugs and the issue is just races with debian doing its upgrades with unattended-upgrades. To my surprise unattended-upgrades has also been a default on debian for years now, it would seem we can just move to a debian image of "netinst" or "minimal" images but that requires more work than what we can just do by removing the package. Long term we really should request to see if is debian folks can ends up packaging a proper guestfs image based on debian testing for us, and when that does happen we ask it does not have unattended-upgrades. [0] https://wiki.debian.org/UnattendedUpgrades Signed-off-by: Luis Chamberlain <[email protected]>
1 parent f83ea75 commit 5f51fd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/bringup_guestfs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ firstboot-command systemctl stop ssh
223223
firstboot-command DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true dpkg-reconfigure -p low --force openssh-server
224224
firstboot-command systemctl start ssh
225225
firstboot-command apt update && apt upgrade --yes
226+
uninstall unattended-upgrades
226227
_EOT
227228
# CONFIG_GUESTFS_COPY_SOURCES_FROM_HOST_TO_GUEST will not work
228229
# if /etc/nsswitch.conf has a line like this:

0 commit comments

Comments
 (0)