Bug#915830: busybox: cp: failed to access '/var/tmp/mkinitramfs_h8da2B//usr/bin/busybox': Too many levels of symbolic links
Hi Ben,
Ben Hutchings wrote:
> > /etc/kernel/postinst.d/initramfs-tools:
> > update-initramfs: Generating /boot/initrd.img-4.19.0-4-686-pae
> > cp: failed to access '/var/tmp/mkinitramfs_URATxd//usr/bin/touch': Too many levels of symbolic links
> > E: /usr/share/initramfs-tools/hooks/fsprotect failed with return 1.
[...]
> The copy_file function applies two
> transformations to the target filename:
>
> 1. If it matches /bin/*, /lib*, or /sbin/*, add /usr to the beginning
> since the initramfs is usrmerged.
> 2. If it refers a directory, add the basename of the source filename.
>
> These need to be done in the opposite order, to handle a target
> filename of "/bin" correctly.
Thanks for the prompt analysis.
> This is a bug in initramfs-tools.
Ok. Since I can't see any such bug report against initramfs-tools, I
will file one after this mail.
> But this is a very different problem from the one Chris Lamb
> reported.
I disagree that it is _very_ different since it has very similar
symptoms. The cause might be very differnt, though, indeed.
Regards, Axel
--
,''`. | Axel Beckert <abe@debian.org>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
Reply to: