[readonly/geninitrd/devel: 250/334] Use 3000 initrd as size for ia64|amd64|x86_64|sparc64 arches.

draenog draenog at pld-linux.org
Sat Nov 2 19:32:33 CET 2013


commit 901afd79e393b34aec965b2fa2d3c43d4034931d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Jun 9 22:03:56 2005 +0000

    Use 3000 initrd as size for ia64|amd64|x86_64|sparc64 arches.
    
    svn-id: @6057

 geninitrd | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 241aa95..64c7922 100755
--- a/geninitrd
+++ b/geninitrd
@@ -693,11 +693,15 @@ if [ ! -x /bin/initrd-busybox ] ; then
 	echo "/bin/initrd-busybox is missing !"
 	exit 1
 fi
-if [ "`uname -m`" = "ia64" ]; then
-	IMAGESIZE=3000
-else
-	IMAGESIZE=1500
-fi
+case "$(uname -m)" in
+    ia64|amd64|x86_64|sparc64)
+    	IMAGESIZE=3000
+	;;
+    *)
+    	IMAGESIZE=1500
+	;;
+esac
+
 while [ $# -gt 0 ]; do
 	case $1 in
 	--fstab=*)
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list