Install netplan.io for Debian Bookworm

Debian Cloud Images are shipped with netplan as a way to
configure networking for Debian. Without netplan being installed,
images built by DIB with cloud-init do not bring networking up,
since systemd-networkd is not enabled after installation, and there
are no other means to configure networking.

Alternative approach could be to enable networkd, though it is
better to be closer to official cloud images.

Change-Id: I115ab83cf374819bc447fc1bd596e71326d13ed9
This commit is contained in:
Dmitriy Rabotyagov 2023-08-14 15:33:27 +02:00 committed by Dmitriy Rabotyagov
parent deb1869c6e
commit bb9e970835
1 changed files with 5 additions and 0 deletions

View File

@ -37,3 +37,8 @@ if [ "$DIB_DEBIAN_ALT_INIT_PACKAGE" != "sysvinit" ]; then
/etc/apt/preferences.d/sysvinit > /etc/apt/preferences.d/sysvinit
fi
case "${DIB_RELEASE}" in
bookworm|stable|testing)
apt-get install -y netplan.io
;;
esac