[readonly/geninitrd: 482/1068] - alias romfs,cramfs

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


commit c1548a54792a83ab75e7692ac03796bd84496ebe
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sun Oct 28 18:19:56 2007 +0000

    - alias romfs,cramfs
    
    svn-id: @8895

 geninitrd | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 0b3c2be..9f5a853 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1057,8 +1057,8 @@ fi
 pack_version="`echo "$kernel"|awk -F. '{print sprintf("%03d%03d",$1,$2)}'`"
 pack_version_long="`echo "$kernel"|awk -F. '{print sprintf("%03d%03d%03d",$1,$2,$3)}'`"
 
-if [ "x" = "x$INITRDFS" ]; then
-	if [ "x" = "x$FS" ]; then
+if [ -z "$INITRDFS" ]; then
+	if [ -z = "$FS" ]; then
 		# default value
 		if [ "$pack_version" -ge "002005" ]; then
 			INITRDFS="initramfs"
@@ -1098,12 +1098,12 @@ case "$INITRDFS" in
 			die "/sbin/mke2fs is missing"
 		fi
 		;;
-	rom)
+	rom|romfs)
 		if [ ! -x /sbin/genromfs ]; then
 			die "/sbin/genromfs is missing"
 		fi
 		;;
-	cram)
+	cram|cramfs)
 		if [ ! -x /sbin/mkcramfs ]; then
 			die "/sbin/mkcramfs is missing"
 		fi
@@ -1787,7 +1787,7 @@ case "$INITRDFS" in
 
 		umount "$IMAGE"
 		;;
-	rom)
+	rom|romfs)
 		genromfs -f "$IMAGE" -d "$MNTPOINT" -V "PLD initrd for kernel $kernel"
 		IMAGESIZE=$(stat -c %s $IMAGE | awk '{print int((($1/1024)+1023)/1024)*1024}')
 		debug 	"romfs image size: $IMAGESIZE ($IMAGE)"
@@ -1795,7 +1795,7 @@ case "$INITRDFS" in
 			echo >&2 "$PROGRAM: Your image size is larger than 4096, Be sure to boot kernel with ramdisk_size=$IMAGESIZE!"
 		fi
 		;;
-	cram)
+	cram|cramfs)
 		mkcramfs "$MNTPOINT" "$IMAGE"
 		;;
 	initramfs)
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list