On Sun, 17 Nov 2019 19:53:13 +0100 Johannes Schauer wrote:

> Quoting Johannes Schauer (2019-11-17 18:20:17)
> > > Maybe the recipe you suggested should be improved to address this issue
> > > with the selection of the mode...
> > 
> > Before doing that I'll see if this could be fixed by changing something in
> > either fakechroot or in update-initramfs.
> 
> See #944929

Hello Johannes!

After seeing bug #944929 closed as fixed in both unstable and testing,
I thought I could retry with mmdebstrap.
But I still get an error:

  $ cd Downloads
  $ TMPDIR='./'
  $ export TMPDIR
  $ 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
  I: using ${HOME}/Downloads/mmdebstrap.2GP5UNhTac as tempdir
  I: running apt-get update...
  done
  I: downloading packages with apt...
  done
  I: extracting archives...
  done
  I: installing packages...
  done
  I: downloading apt...
  done
  I: installing apt...
  done
  I: installing remaining packages inside the chroot...
  done
  I: running --customize-hook in shell: sh -c 'chroot "$1" passwd --delete 
root' exec ${HOME}/Downloads/mmdebstrap.2GP5UNhTac
  passwd: password expiry information changed.
  I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --home-dir 
/home/user --create-home user' exec ${HOME}/Downloads/mmdebstrap.2GP5UNhTac
  I: running --customize-hook in shell: sh -c 'chroot "$1" passwd --delete 
user' exec ${HOME}/Downloads/mmdebstrap.2GP5UNhTac
  passwd: password expiry information changed.
  I: running --customize-hook in shell: sh -c 'echo host > "$1/etc/hostname"' 
exec ${HOME}/Downloads/mmdebstrap.2GP5UNhTac
  I: running --customize-hook in shell: sh -c 'echo "127.0.0.1 localhost host" 
> "$1/etc/hosts"' exec ${HOME}/Downloads/mmdebstrap.2GP5UNhTac
  I: running --customize-hook directly: 
/usr/share/autopkgtest/setup-commands/setup-testbed 
${HOME}/Downloads/mmdebstrap.2GP5UNhTac
  /usr/share/autopkgtest/setup-commands/setup-testbed: Attempting to set up 
Debian/Ubuntu apt sources automatically
  /usr/share/autopkgtest/setup-commands/setup-testbed: Distribution assumed to 
resemble Debian
  update-initramfs: Generating /boot/initrd.img-5.4.0-3-amd64
  W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125a-3.fw for module 
r8169
  [...]
  W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module 
r8169
  cp: failed to access './/mkinitramfs_SqDsE7/lib/systemd/network/': No such 
file or directory
  E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
  update-initramfs: failed for /boot/initrd.img-5.4.0-3-amd64 with 1.
  E: run_chroot failed: E: command failed: 
/usr/share/autopkgtest/setup-commands/setup-testbed
  I: main() received signal PIPE: waiting for setup...
  W: listening on child socket failed: E: received eof on socket
  
  I: removing tempdir ${HOME}/Downloads/mmdebstrap.2GP5UNhTac...
  $ ls -s
  total 0
  0 debian-unstable.tar

As you can see, I still obtain an empty file.

Did I misunderstand the situation?
I thought it could work correctly, now...


-- 
 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

Attachment: pgpxrtBFMLY7R.pgp
Description: PGP signature

Reply via email to