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 06-15-2010, 03:56 PM
Colin Watson
 
Default Bug#586002: initramfs-tools: should work around 'find -printf %Y' bug

Package: initramfs-tools
Version: 0.96.1
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch maverick

The change to filter out looping or broken symlinks from the initramfs,
written by me for Ubuntu and applied to Debian for #575157, tickles a
bug in find (which I think also had an associated Debian bug, but I've
been unable to find it):

https://savannah.gnu.org/bugs/index.php?29460

This was fixed in 4.5.8, which is currently only in experimental. In
any case findutils is very deep in the dependency chain for upgrades and
I believe it would be a good idea to avoid requiring a new version of it
(I've had problems quite recently with strict dependencies on findutils
causing unresolvable dependency loops). The following patch works
around this bug in a reasonably straightforward way.

diff --git a/mkinitramfs b/mkinitramfs
index 1c6ad28..e3b392e 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -304,8 +304,8 @@ fi

# Remove any looping or broken symbolic links, since they break cpio.
[ "${verbose}" = y ] && xargs_verbose="-t"
-find "${DESTDIR}" -type l -printf '%p %Y
' | sed -n 's/ [LN]$//p'
- | xargs ${xargs_verbose:-} -rL1 rm -f
+(cd "${DESTDIR}" && find . -type l -printf '%p %Y
' | sed -n 's/ [LN]$//p'
+ | xargs ${xargs_verbose:-} -rL1 rm -f)

[ "${verbose}" = y ] && echo "Building cpio ${outfile} initramfs"
(

Thanks,

--
Colin Watson [cjwatson@ubuntu.com]



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100615155612.GY21862@riva.ucam.org">http://lists.debian.org/20100615155612.GY21862@riva.ucam.org
 
Old 06-16-2010, 01:58 PM
maximilian attems
 
Default Bug#586002: initramfs-tools: should work around 'find -printf %Y' bug

tags 586002 pending
stop

On Tue, 15 Jun 2010, Colin Watson wrote:

>
> The change to filter out looping or broken symlinks from the initramfs,
> written by me for Ubuntu and applied to Debian for #575157, tickles a
> bug in find (which I think also had an associated Debian bug, but I've
> been unable to find it):
>
> https://savannah.gnu.org/bugs/index.php?29460
>
> This was fixed in 4.5.8, which is currently only in experimental. In
> any case findutils is very deep in the dependency chain for upgrades and
> I believe it would be a good idea to avoid requiring a new version of it
> (I've had problems quite recently with strict dependencies on findutils
> causing unresolvable dependency loops). The following patch works
> around this bug in a reasonably straightforward way.
>
> diff --git a/mkinitramfs b/mkinitramfs
> index 1c6ad28..e3b392e 100755
> --- a/mkinitramfs
> +++ b/mkinitramfs
> @@ -304,8 +304,8 @@ fi
>
> # Remove any looping or broken symbolic links, since they break cpio.
> [ "${verbose}" = y ] && xargs_verbose="-t"
> -find "${DESTDIR}" -type l -printf '%p %Y
' | sed -n 's/ [LN]$//p'
> - | xargs ${xargs_verbose:-} -rL1 rm -f
> +(cd "${DESTDIR}" && find . -type l -printf '%p %Y
' | sed -n 's/ [LN]$//p'
> + | xargs ${xargs_verbose:-} -rL1 rm -f)
>
> [ "${verbose}" = y ] && echo "Building cpio ${outfile} initramfs"
> (
>
> Thanks,

findutils debian bug was #576772.

thanks applied and pushed out will be in next release.

--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100616135818.GB14842@stro.at">http://lists.debian.org/20100616135818.GB14842@stro.at
 

Thread Tools




All times are GMT. The time now is 10:17 PM.

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