Hi,
Quoting Francesco Poli (2020-11-15 20:43:49)
> 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?Which mode was mmdebstrap run in? Maybe this is something similar to this initramfs-tools bug that popped up with fakechroot: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944929 Can you share the whole script that you used for these results? Thanks! cheers, josch
signature.asc
Description: signature

