On Wed, 11 Nov 2020 23:27:21 +0100 Johannes Schauer wrote: > Hi Francesco,
Hello Johannes, thanks for the updated followup! [...] >So a better guestfish command is this one: > > guestfish -N debian-unstable.img=disk:8G -- \ [...] > Just to make sure, here is my > extlinux.conf: [...] > Also, you reported that the guestfish call fails [...] > maybe your > disk size is not large enough for your tarball and that's why it fails? I re-tried with the modified guestfish command, the modified extlinux.conf file and requesting an 8 GiB size. Unfortunately, the new test results in the following errors: [...] Setting up initramfs-tools-core (0.139) ... Setting up initramfs-tools (0.139) ... update-initramfs: deferring update (trigger activated) Setting up linux-image-5.9.0-2-amd64 (5.9.6-1) ... I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.9.0-2-amd64 I: /initrd.img.old is now a symlink to boot/initrd.img-5.9.0-2-amd64 I: /vmlinuz is now a symlink to boot/vmlinuz-5.9.0-2-amd64 I: /initrd.img is now a symlink to boot/initrd.img-5.9.0-2-amd64 /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.9.0-2-amd64 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125b-2.fw for module r8169 [...] find: ‘/var/tmp/mkinitramfs_KOh7yF/lib/modules/5.9.0-2-amd64/kernel’: No such file or directory cp: cannot stat '/usr/lib/klibc/bin/*': No such file or directory cp: cannot stat '/lib/klibc-*.so': No such file or directory E: /usr/share/initramfs-tools/hooks/klibc-utils failed with return 1. update-initramfs: failed for /boot/initrd.img-5.9.0-2-amd64 with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-5.9.0-2-amd64 (--configure): installed linux-image-5.9.0-2-amd64 package post-installation script subprocess returned error exit status 1 Setting up iptables (1.8.6-1) ... [...] dpkg: dependency problems prevent configuration of linux-image-amd64: linux-image-amd64 depends on linux-image-5.9.0-2-amd64 (= 5.9.6-1); however: Package linux-image-5.9.0-2-amd64 is not configured yet. dpkg: error processing package linux-image-amd64 (--configure): dependency problems - leaving unconfigured [...] Processing triggers for initramfs-tools (0.139) ... Errors were encountered while processing: linux-image-5.9.0-2-amd64 linux-image-amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) E: run_chroot failed: E: env --unset=APT_CONFIG --unset=TMPDIR /usr/sbin/chroot ${HOME}/Downloads/TEMP/mmdebstrap.HHRQ7rNuyL env --unset=APT_CONFIG --unset=TMPDIR apt-get --yes install -oAPT::Status-Fd=<$fd> -oDpkg::Use-Pty=false linux-image-amd64 adduser apt apt-utils bsdmainutils cpio cron debconf debconf-i18n debian-archive-keyring dmidecode e2fsprogs gcc-10-base gcc-9-base gpgv ifupdown init iproute2 iptables iputils-ping isc-dhcp-client isc-dhcp-common kmod less logrotate mawk nano netbase whiptail libpam-modules libpam-modules-bin libpam-runtime procps libreadline8 readline-common rsyslog sensible-utils passwd systemd systemd-sysv udev tasksel-data tzdata fdisk mount vim-common vim-tiny failed W: listening on child socket failed: I: removing tempdir ${HOME}/Downloads/TEMP/mmdebstrap.HHRQ7rNuyL... libguestfs: error: /usr/bin/supermin exited with error status 1. To see full error messages you may need to enable debugging. Do: export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1 and run the command again. For further information, read: http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs You can also run 'libguestfs-test-tool' and post the *complete* output into a bug report or message to the libguestfs mailing list. And the directory now includes the following files: $ ls -altrF --si total 218k drwxrwx--- 3 $USER $USER 4.1k Nov 15 20:28 ../ -rw-r--r-- 1 $USER $USER 0 Nov 15 20:30 debian-unstable.tar -rw-rw---- 1 $USER $USER 125 Nov 15 20:30 extlinux.conf drwxr-xr-x 2 $USER $USER 4.1k Nov 15 20:30 .guestfs-1000/ -rw-rw---- 1 $USER $USER 8.6G Nov 15 20:30 debian-unstable.img drwxrwx--- 3 $USER $USER 4.1k Nov 15 20:30 ./ -rw-r----- 1 $USER $USER 197k Nov 15 20:30 debian-unstable.qcow2 Any idea why initramfs-tools hooks are failing? -- http://www.inventati.org/frx/ There's not a second to spare! To the laboratory! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
pgp1jXakrZd_d.pgp
Description: PGP signature