X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=packer%2Fdebian64_provision.sh;h=98b4d37427f925f08f8336a0798da13a3a7c2671;hb=7bab80c89ec11649062162119e0ba28d18e9fa58;hp=c7eed1fc859669f4c0dff505fa1249b5cb988fde;hpb=8609e64e6fef8931643d4094342cc2baf37f352d;p=grml-debootstrap.git diff --git a/packer/debian64_provision.sh b/packer/debian64_provision.sh index c7eed1f..98b4d37 100644 --- a/packer/debian64_provision.sh +++ b/packer/debian64_provision.sh @@ -67,7 +67,13 @@ virtualbox_setup() { mountpoint "${TARGET}/media/cdrom" >/dev/null && umount "${TARGET}/media/cdrom" mount -t iso9660 $isofile "${TARGET}/media/cdrom/" UTS_RELEASE=$KERNELVERSION LD_PRELOAD=/tmp/fake-uname.so grml-chroot "$TARGET" /media/cdrom/VBoxLinuxAdditions.run --nox11 || true - tail -10 "${TARGET}/var/log/VBoxGuestAdditions.log" + if grep -q "make: .*vboxguest.*Error 2" "${TARGET}/var/log/vboxadd-install.log" ; then + echo "Error: looks like a fatal error happened during installation of VirtualBox Guest Additions." >&2 + exit 1 + fi + [ -r "${TARGET}/var/log/VBoxGuestAdditions.log" ] && tail -10 "${TARGET}/var/log/VBoxGuestAdditions.log" + [ -r "${TARGET}/var/log/vboxadd-install.log" ] && tail -10 "${TARGET}/var/log/vboxadd-install.log" + [ -r "${TARGET}/var/log/vboxadd-setup.log" ] && tail -10 "${TARGET}/var/log/vboxadd-setup.log" umount "${TARGET}/media/cdrom/" # work around bug in VirtualBox 4.3.18 which leaves process behind, @@ -228,7 +234,7 @@ grml_debootstrap_execution() { apply_nic_workaround() { # release specific stuff case "$DEBIAN_VERSION" in - stretch|buster|bullseye|unstable|sid) + stretch|buster|bullseye|bookworm|unstable|sid) ;; *) echo "* Debian $DEBIAN_VERSION doesn't require NIC workaround"