fix(buildd): add udev to buildd images. (LP: #2092196)

On 24.10 forward, networkd relies on udev for interface setup. This addresses
forever pending interfaces in networkd on buildd lxd images.
This commit is contained in:
Simon Poirier 2025-01-24 10:55:51 -05:00
parent ba529b0d80
commit 1ee581ca0c

View File

@ -0,0 +1,12 @@
#!/bin/bash -eux
. config/functions
chroot_dir=chroot
# Networking interface configuration relies udev.
# In normal LXD images, it's a transitive depends of ubuntu-cloud-minimal
# seed, which isn't present in buildd images.
chroot "$chroot_dir" apt-get -y update
env DEBIAN_FRONTEND=noninteractive chroot "$chroot_dir" apt-get -y install udev
chroot "$chroot_dir" apt-get -y clean