Hi,
Quoting Francesco Poli (2020-01-28 23:41:38)
> + chroot ${HOME}/Downloads/mmdebstrap.pxni4vAjou update-initramfs -u
> 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_v8SvPb/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: sh -x
> /usr/share/autopkgtest/setup-commands/setup-testbed "$1"
> 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.pxni4vAjou...
>
>
> As you can see, a "cp" fails to access file
> './/mkinitramfs_v8SvPb/lib/systemd/network/',
> and /usr/share/initramfs-tools/hooks/udev fails with exit status 1.
> But, honestly, I cannot understand why.
>
> The lines that seem to fail are /usr/share/initramfs-tools/hooks/udev:
> 25 and the following ones... But why?
yes, that's where it seems to fail. To further investigate you can try the
following:
Copy /usr/share/autopkgtest/setup-commands/setup-testbed to a location that you
control so that you can edit it. Remove all the parts that are not necessary to
reproduce the problem. I suspect just keeping the line 'chroot "$root"
update-initramfs -u' is not sufficient and something else has to happen before
so that you can see the error? If that line alone is enough, then you should
also be able to reproduce the problem by running mmdebstrap with:
--customize-hook='chroot "$1" update-initramfs -u'
Once you are that far, you either already have found the problem or the next
thing you can try is to debug /usr/share/initramfs-tools/hooks/udev. To do
that, just insert a "set -x" somewhere at the top. For example by adding the
following before you call the failing hook:
--customize-hook='awk "NR==2{print 'set -x'}1"
"$1/usr/share/initramfs-tools/hooks/udev"'
I would love to help more but I already tried out the failing command on three
different systems and I'm unable to reproduce it.
Thanks!
cheers, josch
signature.asc
Description: signature

