]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Use 3000 initrd as size for ia64|amd64|x86_64|sparc64 arches.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 9 Jun 2005 22:03:56 +0000 (22:03 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 9 Jun 2005 22:03:56 +0000 (22:03 +0000)
svn-id: @6057

geninitrd

index 241aa95e7d48b540fbfb2977804e21ab16af9e49..64c79226d2172a6432f0930092964cae26b6d6a6 100755 (executable)
--- 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=*)
This page took 0.148796 seconds and 4 git commands to generate.