]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
$IMAGESIZE is used only for ext2 rootfs.
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 19 Oct 2006 12:24:25 +0000 (12:24 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 19 Oct 2006 12:24:25 +0000 (12:24 +0000)
svn-id: @7873

geninitrd

index 7e3a45f4c96a70be8f58b6bac2b9aa6efc3044ae..a197a16c0c412cb2c39161aa9d8b060bc8396efb 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -757,14 +757,6 @@ if [ ! -x /bin/initrd-busybox ] ; then
        echo "/bin/initrd-busybox is missing !"
        exit 1
 fi
-case "$(uname -m)" in
-ia64|amd64|x86_64|sparc64)
-       IMAGESIZE=3000
-       ;;
-*)
-       IMAGESIZE=1500
-       ;;
-esac
 
 while [ $# -gt 0 ]; do
        case $1 in
@@ -931,7 +923,6 @@ fi
 
 case "$INITRDFS" in
        ext2)
-               IMAGESIZE=$((IMAGESIZE + 2000))
                if [ ! -x /sbin/mke2fs ]; then
                        echo "/sbin/mke2fs is missing" 1>&2
                        exit 1
@@ -1055,6 +1046,15 @@ if [ -f "$IMAGE" ]; then
 fi
 
 if [ "$INITRDFS" = "ext2" ] ; then
+       case "$(uname -m)" in
+       ia64|amd64|x86_64|sparc64)
+               IMAGESIZE=5000
+               ;;
+       *)
+               IMAGESIZE=1500
+               ;;
+       esac
+
        dd if=/dev/zero of="$IMAGE" bs=1k count="$IMAGESIZE" 2> /dev/null
        mke2fs -q -F -b 1024 -m 0 "$IMAGE" 2>/dev/null 1>&2
        tune2fs -i 0 "$IMAGE" >/dev/null 2>&1
This page took 0.191866 seconds and 4 git commands to generate.