On Mon, 11 Nov 2019 00:22:46 +0100 Francesco Poli wrote: [...] > I think I will look into mmdebstrap in more depth and then get back to > you to let you know how it went...
I am giving it a try, but I am getting an error I am not quite sure to understand: $ mmdebstrap --variant=important --include=linux-image-amd64 \ --customize-hook='chroot "$1" passwd --delete root' \ --customize-hook='chroot "$1" useradd --home-dir /home/user --create-home user' \ --customize-hook='chroot "$1" passwd --delete user' \ --customize-hook='echo host > "$1/etc/hostname"' \ --customize-hook='echo "127.0.0.1 localhost host" > "$1/etc/hosts"' \ --customize-hook="/usr/share/autopkgtest/setup-commands/setup-testbed" \ sid debian-unstable.tar I: automatically chosen mode: fakechroot I: chroot architecture amd64 is equal to the host's architecture [...] Setting up linux-image-5.3.0-2-amd64 (5.3.9-2) ... I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.3.0-2-amd64 I: /initrd.img.old is now a symlink to boot/initrd.img-5.3.0-2-amd64 I: /vmlinuz is now a symlink to boot/vmlinuz-5.3.0-2-amd64 I: /initrd.img is now a symlink to boot/initrd.img-5.3.0-2-amd64 /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.3.0-2-amd64 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-2.fw for module r8169 [...] W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169 E: /usr/share/initramfs-tools/hooks/udev failed with return 1. update-initramfs: failed for /boot/initrd.img-5.3.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.3.0-2-amd64 (--configure): installed linux-image-5.3.0-2-amd64 package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-image-amd64: linux-image-amd64 depends on linux-image-5.3.0-2-amd64 (= 5.3.9-2); however: Package linux-image-5.3.0-2-amd64 is not configured yet. dpkg: error processing package linux-image-amd64 (--configure): dependency problems - leaving unconfigured Setting up tasksel (3.56) ... Setting up tasksel-data (3.56) ... Processing triggers for libc-bin (2.29-3) ... Processing triggers for systemd (243-7) ... Processing triggers for initramfs-tools (0.135) ... Errors were encountered while processing: linux-image-5.3.0-2-amd64 linux-image-amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) E: run_chroot failed: E: /usr/sbin/chroot /home/frx/var/cache/autopkgtest_TEST1/mmdebstrap.DUEBqVAD7B env --unset=APT_CONFIG --unset=TMPDIR apt-get --yes install -oAPT::Status-Fd=<$fd> -oDpkg::Use-Pty=false udev procps iproute2 ifupdown apt-utils mount tasksel iputils-ping systemd-sysv tzdata linux-image-amd64 debconf-i18n vim-common gcc-9-base iptables libpam-runtime e2fsprogs libpam-modules whiptail cron passwd isc-dhcp-common libpam-modules-bin init vim-tiny cpio netbase apt tasksel-data readline-common systemd kmod dmidecode logrotate sensible-utils gpgv mawk debconf bsdmainutils libreadline8 isc-dhcp-client nano debian-archive-keyring fdisk adduser less rsyslog failed I: removing tempdir /tmp/mmdebstrap.DUEBqVAD7B... I noticed that my /tmp was almost full, when mmdebstrap failed. Since I have /tmp mounted on a physical partition: $ df --si /tmp/ Filesystem Size Used Avail Use% Mounted on /dev/md3 869M 934k 806M 1% /tmp I thought it could be the cause of the issue. I tried to set: $ TMPDIR='./' $ export TMPDIR This forced mmdebstrap to create its temporary directory inside the current working directory (which is inside my home directory, where at least 150 GB are available), but did not solve the issue. Could you please help me understand why /usr/share/initramfs-tools/hooks/udev failed with exit status == 1 ? Thanks for your time and patience! -- 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
pgp3ooaUNMMnh.pgp
Description: PGP signature