From 139f144db6de8dc6d71be065ec97b222f66381f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 11 Jun 2026 11:29:09 +0200 Subject: [PATCH] fixup! image-builder: support building addon images without /sbin/init check --- tools/osbuilder/image-builder/image_builder.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/osbuilder/image-builder/image_builder.sh b/tools/osbuilder/image-builder/image_builder.sh index 66ccc0139d..d9d4b072ad 100755 --- a/tools/osbuilder/image-builder/image_builder.sh +++ b/tools/osbuilder/image-builder/image_builder.sh @@ -457,6 +457,12 @@ setup_selinux() { } setup_systemd() { + # Addon content images (e.g. the gpu addon) carry no /etc and are not + # bootable systemd rootfses, so there is nothing to set up here. + if [[ ! -d "${mount_dir}/etc" ]]; then + info "No /etc in rootfs; skipping systemd machine-id setup" + return 0 + fi info "Creating empty machine-id to allow systemd to bind-mount it" touch "${mount_dir}/etc/machine-id" }