[readonly/geninitrd/devel: 225/334] Well, back to romfs, initramfs fixes.

draenog draenog at pld-linux.org
Sat Nov 2 19:30:27 CET 2013


commit 566ad08ba1c0acac02b5ef8759df9eef29988153
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jul 2 20:08:41 2004 +0000

    Well, back to romfs, initramfs fixes.
    
    svn-id: @4294

 geninitrd | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 7887db4..2c56b1a 100755
--- a/geninitrd
+++ b/geninitrd
@@ -786,11 +786,11 @@ pack_version_long="`echo "$kernel"|awk -F. '{print sprintf("%03d%03d%03d",$1,$2,
 if [ "x" = "x$INITRDFS" ] ; then
 	if [ "x" = "x$FS" ] ; then
 		# default value
-		if [ "$pack_version" -ge "002005" ] ; then
-		    INITRDFS="initramfs"
-		else
+#		if [ "$pack_version" -ge "002005" ] ; then
+#		    INITRDFS="initramfs"
+#		else
 		    INITRDFS="rom"
-		fi
+#		fi
 	else
 		echo "Warning: FS configuration options is obsoleted. Use INITRDFS instead" 1>&2
 		INITRDFS="$FS"
@@ -953,7 +953,7 @@ mknod "$MNTIMAGE/dev/null" c 1 3
 mknod "$MNTIMAGE/dev/zero" c 1 5
 
 s="$RCFILE"
-ln -s /linuxrc /init
+ln -s /linuxrc $MNTIMAGE/init
 
 inst /bin/initrd-busybox "$MNTIMAGE/bin/sh"
 ln -s sh "$MNTIMAGE/bin/busybox"
@@ -1160,7 +1160,7 @@ case "$INITRDFS" in
 		mkcramfs "$MNTPOINT" "$IMAGE"
 		;;
 	initramfs)
-		find $MNTPOINT -printf "./%P\n" | cpio -H newc -o > "$IMAGE"
+		(cd $MNTPOINT ; find . | cpio -H newc -o > "$IMAGE")
 		;;
 	*)
 		echo "Filesystem $INITRDFS not supported by $0";
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/398807324938659207036e520c0950a61ef50c11



More information about the pld-cvs-commit mailing list