[Rear-users] SF.net SVN: rear:[556] trunk/usr/share/rear/lib/linux-functions.sh

u at netbeisser.de u at netbeisser.de
Sun Jun 5 05:15:10 CEST 2011


Hi,

On Sat, Jun 04, 2011 at 01:26:01AM +0000, dag- at users.sourceforge.net wrote:
> Revision: 556
>           http://rear.svn.sourceforge.net/rear/?rev=556&view=rev
> Author:   dag-
> Date:     2011-06-04 01:26:01 +0000 (Sat, 04 Jun 2011)
> 
> Log Message:
> -----------
> - Improve critical paths for performance
> - Optimize list sizes, reduce searches
> - Remove checks that fail anyway without check
> - Disable a piece that is obsolete on today's kernel
> 
> Modified Paths:
> --------------
>     trunk/usr/share/rear/lib/linux-functions.sh
> 
> Modified: trunk/usr/share/rear/lib/linux-functions.sh
> ===================================================================
> --- trunk/usr/share/rear/lib/linux-functions.sh	2011-06-04 01:10:14 UTC (rev 555)
> +++ trunk/usr/share/rear/lib/linux-functions.sh	2011-06-04 01:26:01 UTC (rev 556)
> @@ -112,16 +112,15 @@
 

[..]

 
> @@ -202,28 +199,29 @@
>  	StopIfError "Unable to find a working ldd binary."
>  
>  	local initrd_libs=( $(
> -		$ldd "$@" \
> -		| sed -ne 's:\t\(.* => \)\?\(/.*\) (0x[0-9a-f]*):\2:p'
> +		$ldd "$@" | sed -ne 's:\t\(.* => \)\?\(/.*\) (0x[0-9a-f]*):\2:p' | sort -u
>  	) )
  
I think the sed in initrd_libs function can be replaced by a simple awk '{print $1}'

-- 
--
Stefan Kuttler ==*== nc.netbeisser.de




More information about the rear-users mailing list