Browse Source

Dimitar Zhekov:


			
			
				rocklinux
			
			
		
Dimitar Zhekov 21 years ago
parent
commit
6ca0acb8a6
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      target/bootdisk/x86/makeimages.sh

+ 5
- 4
target/bootdisk/x86/makeimages.sh

@ -38,14 +38,15 @@ echo "Using $tmpdev."
for image in initrd boot_144 boot_288 for image in initrd boot_144 boot_288
do do
echo "Creating ${image}.img ..."
case ${image} in case ${image} in
initrd) initrd)
echo "Creating ${image}.gz ..."
size=4096 ;; size=4096 ;;
boot_144) boot_144)
echo "Creating ${image}.img ..."
size=1440 ;; size=1440 ;;
boot_288) boot_288)
echo "Creating ${image}.img ..."
size=2880 ;; size=2880 ;;
esac esac
@ -65,7 +66,7 @@ do
fi fi
liloconf=lilo-conf-${image#boot_} liloconf=lilo-conf-${image#boot_}
if [ $image = boot_288 -o "$combo" = 1 ] ; then 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 [ $image = boot_144 ] && liloconf=lilo-conf-1x2
fi fi
sed -e "s,/mnt/,$tmpdir/,g" \ sed -e "s,/mnt/,$tmpdir/,g" \
@ -78,7 +79,7 @@ do
umount $tmpdir umount $tmpdir
case ${image} in 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 ;; *) cp $tmpfile $image.img || rc=1 ;;
esac esac
done done

Loading…
Cancel
Save