<div dir="ltr">Has anyone else tried building Debian Testing (bookworm) images with DIB? I'm having troubles with getting them to boot, with errors that look like missing components in the initrd to me. The command I am using to build is:<div><br></div><div>export ELEMENTS_PATH=elements:diskimage-builder/diskimage_builder/elements<br>export DIB_CLOUD_INIT_DATASOURCES="ConfigDrive, OpenStack, NoCloud"<br>export DIB_APT_MINIMAL_CREATE_INTERFACES=0<br class="gmail-Apple-interchange-newline">export DIB_PYTHON_VERSION=3</div><div>export DIB_RELEASE=bookworm</div><div>export DIB_SF_AGENT_PACKAGE=shakenfist-agent<br>export build_args="cloud-init cloud-init-datasources sf-agent vm"</div><div><br></div><div>disk-image-create utilities debian debian-systemd ${build_args} -o temp.qcow2</div><div><br></div><div>Where shakenfist-agent / sf-agent are a custom element not really relevant to this query (I've left it for completeness).</div><div><br></div><div>When I boot the output image, I get this:</div><div><br></div><div>...<br>[    1.906949] virtio_blk virtio2: 2/0/0 default/read/poll queues<br>[    1.908318] virtio_blk virtio2: [vda] 104857600 512-byte logical blocks (53.7 GB/50.0 GiB)<br>[    1.916912]  vda: vda1<br>[    1.917646] virtio_blk virtio3: 2/0/0 default/read/poll queues<br>[    1.917676] virtio_net virtio1 ens11: renamed from eth0<br>[    1.918965] virtio_blk virtio3: [vdb] 184 512-byte logical blocks (94.2 kB/92.0 KiB)<br>Begin: Loading essential drivers ... done.<br>Begin: Running /scripts/init-premount ... done.<br>Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.<br>Begin: Running /scripts/local-premount ... done.<br>Warning: fsck not present, so skipping root file system<br>[    2.024351] EXT4-fs (vda1): mounted filesystem with ordered data mode. Quota mode: none.<br>done.<br>Begin: Running /scripts/local-bottom ... [    2.041352] EXT4-fs (vda1): unmounting filesystem.<br>GROWROOT: WARNING: resize failed: failed [flock:127] flock -x 9<br>/sbin/growpart: line 714: flock: not found<br>FAILED: Error while obtaining exclusive lock on /dev/vda<br>[    2.057556]  vda: vda1<br>/scripts/local-bottom/growroot: line 97: wait-for-root: not found<br>done.<br>Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory<br>mount: mounting /dev on /root/dev failed: No such file or directory<br>done.<br>mount: mounting /run on /root/run failed: No such file or directory<br>BusyBox v1.35.0 (Debian 1:1.35.0-4+b1) multi-call binary.<br><br>Usage: run-init [-d CAP,CAP...] [-n] [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]<br><br>Free initramfs and switch to another root fs:<br>chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,<br>execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.<br><br>        -c DEV  Reopen stdio to DEV after switch<br>      -d CAPS Drop capabilities<br>     -n      Dry run<br>Target filesystem doesn't have requested /sbin/init.<br>BusyBox v1.35.0 (Debian 1:1.35.0-4+b1) multi-call binary.<br><br>Usage: run-init [-d CAP,CAP...] [-n] [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]<br><br>Free initramfs and switch to another root fs:<br>chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,<br>execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.<br>...<br><br>Which looks to me like I am missing fsck, flock and wait-for-root, probably in the initrd? Adding cloud-init-growpart and growroot as elements did not help, neither did ensuring that the image contained cloud-guest-utils or util-linux.<br><br>I wonder if anyone else has seen this and has some hints?</div><div><br></div><div>Thanks,</div><div>Michael</div></div>