[readonly/geninitrd: 473/1068] - cosmeticis

draenog draenog at pld-linux.org
Sat Nov 2 19:52:09 CET 2013


commit 42820142b6deb33c9232a6142d739810f2787ac3
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Thu Oct 25 14:17:03 2007 +0000

    - cosmeticis
    
    svn-id: @8872

 geninitrd | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 3a1edf5..76d6811 100755
--- a/geninitrd
+++ b/geninitrd
@@ -326,10 +326,10 @@ inst_exec() {
 
 	inst "$@" $dest
 
-	local lib libdir libs=$(ldd "$@" | awk '/statically|linux-gate\.so/{next} NF == 2 {print $1} /=/{print $3}' | sort -u)
+	local lib libs=$(ldd "$@" | awk '/statically|linux-gate\.so/{next} NF == 2 {print $1} /=/{print $3}' | sort -u)
 	for lib in $libs; do
-		libdir=/$(echo "$lib" | cut -d/ -f2)/
-		if [ ! -f "$MNTIMAGE/$libdir/${lib##*/}" ]; then
+		local libdir=/$(echo "$lib" | cut -d/ -f2)/
+		if [ ! -f "$MNTIMAGE$libdir${lib##*/}" ]; then
 			inst_d $libdir
 			inst_exec $lib $libdir
 		fi
@@ -750,7 +750,7 @@ find_modules_for_device() {
 		fi
 		key="^# $(echo $devpath | awk -F/ '{print($3);}' | tr '[a-z]' '[A-Z]'):"
 		if ! is_yes "`awk '/'$key'/ { print( "yes"); }' $fstab`"; then
-			die "The root filesystem is on a $devpath, but there is no magic entry in $fstab for this device. Consult the geninitrd man page for more information"
+			die "The root filesystem is on a $devpath, but there is no magic entry in $fstab for this device. Consult the $PROGRAM man page for more information"
 		fi
 
 		line="`awk '/'$key'/ { print $0; }' $fstab`"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090



More information about the pld-cvs-commit mailing list