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

Bug#506540: initramfs-tools - Always dereferences symlinks

* 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


Attachment: signature.asc
Description: Digital signature

Reply to: