[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#506540: initramfs-tools - Always dereferences symlinks

* Michael Prokop <mika@debian.org> [Tue Jun 08, 2010 at 01:59:35PM +0200]:
> * Bastian Blank <waldi@debian.org> [Sam Nov 22, 2008 at 02:06:24 +0100]:

> > mkinitramfs always expands symlinks. busybox for example is always added
> > two times.

> Verified. busybox is added as /bin/sh as well as /bin/busybox and it
> also affects some other files (depending on the setup).

> Even though "ln -s" is used at several places the symlinks aren't
> part of the resulting initramfs but are normal files instead. The
> problem is cpio's --dereference option when generating the initramfs
> inside mkinitramfs.

> Andreas Korsten pointed me to usr/gen_init_cpio.c in linux kernel
> source and his https://dev.korsten.org/hg/initramkit which is
> supposed to handle symlinks.

> But I think it could be done in current version of mkinitramfs as
> well, though it's not trivial the way it currently works.

> I've added this issue to debian/TODO of i-t.git, needs further
> investigation.

During bug squashing I noticed #338405 which tries to address this
issue, we should take a closer look at that.

maks, when investigating this issue we should discuss the klibc vs.
busybox vs. glibc issue IMO.


Attachment: signature.asc
Description: Digital signature

Reply to: