summaryrefslogtreecommitdiff
path: root/base-image
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-09-23 19:29:30 +0300
committerLars Wirzenius <liw@liw.fi>2023-09-23 19:29:30 +0300
commit29c7b2f477ee40f340c4bde9772690759a76934d (patch)
tree47d1b6d100b41b9c26936d4ab51dd9fa7e4a7051 /base-image
parent52969038edb50856336b8bb84734123839acc529 (diff)
downloadansibleness-29c7b2f477ee40f340c4bde9772690759a76934d.tar.gz
fix: make bookworm image boot faster
systemd-networkd times out waiting for network interfaces to come up, not noticing that ifupdown has already done that. Drop ifupdown, use systemd-networkd only, drops boot speed from 2m26s to 36s. Sponsored-by: author
Diffstat (limited to 'base-image')
-rw-r--r--base-image/bookworm-vm.vmdb6
1 files changed, 5 insertions, 1 deletions
diff --git a/base-image/bookworm-vm.vmdb b/base-image/bookworm-vm.vmdb
index 87539aa..95db015 100644
--- a/base-image/bookworm-vm.vmdb
+++ b/base-image/bookworm-vm.vmdb
@@ -35,9 +35,13 @@ steps:
- cache-rootfs: /
unless: rootfs_unpacked
+ - copy-file: /etc/systemd/network/eth0.network
+ src: eth0.network
+
- chroot: /
shell: |
- apt -y install python3 parted acpi
+ apt-get -y install python3 parted acpi
+ apt-get purge -y ifupdown
- fstab: /