From 6ca0acb8a6c9e1f6f287d12ee9681d0a29f01e1b Mon Sep 17 00:00:00 2001 From: Dimitar Zhekov Date: Tue, 4 May 2004 09:31:41 +0000 Subject: [PATCH] Dimitar Zhekov: fixed x86/makeimages.sh to use initrd.gz not initrd.img [2004042908280732553] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2867 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- target/bootdisk/x86/makeimages.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/target/bootdisk/x86/makeimages.sh b/target/bootdisk/x86/makeimages.sh index 45009c289..b5da2487e 100644 --- a/target/bootdisk/x86/makeimages.sh +++ b/target/bootdisk/x86/makeimages.sh @@ -38,14 +38,15 @@ echo "Using $tmpdev." for image in initrd boot_144 boot_288 do - echo "Creating ${image}.img ..." - case ${image} in initrd) + echo "Creating ${image}.gz ..." size=4096 ;; boot_144) + echo "Creating ${image}.img ..." size=1440 ;; boot_288) + echo "Creating ${image}.img ..." size=2880 ;; esac @@ -65,7 +66,7 @@ do fi liloconf=lilo-conf-${image#boot_} if [ $image = boot_288 -o "$combo" = 1 ] ; then - cp initrd.img $tmpdir || rc=1 + cp initrd.gz $tmpdir || rc=1 [ $image = boot_144 ] && liloconf=lilo-conf-1x2 fi sed -e "s,/mnt/,$tmpdir/,g" \ @@ -78,7 +79,7 @@ do umount $tmpdir case ${image} in - initrd) gzip -9 < $tmpfile > $image.img || rc=1 ;; + initrd) gzip -9 < $tmpfile > $image.gz || rc=1 ;; *) cp $tmpfile $image.img || rc=1 ;; esac done