FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 11-22-2008, 12:06 PM
Bastian Blank
 
Default Bug#506540: initramfs-tools - Always dereferences symlinks

Package: initramfs-tools
Version: 0.92j
Severity: important

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

Bastian

--
Deflector shields just came on, Captain.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-24-2008, 04:54 AM
"boss ganesh"
 
Default Bug#506540: initramfs-tools - Always dereferences symlinks

I don't think it is expanding the symlink . Even it increases the symlink it will not affect anyway .

On Sat, Nov 22, 2008 at 6:36 PM, Bastian Blank <waldi@debian.org> wrote:

Package: initramfs-tools

Version: 0.92j

Severity: important



mkinitramfs always expands symlinks. busybox for example is always added

two times.



Bastian



--

Deflector shields just came on, Captain.







--

To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-08-2010, 11:59 AM
Michael Prokop
 
Default 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
investigation.

regards,
-mika-
 
Old 06-08-2010, 01:19 PM
Michael Prokop
 
Default 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.

regards,
-mika-
 

Thread Tools




All times are GMT. The time now is 04:29 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org