|
From: <abe...@us...> - 2011-12-24 20:03:44
|
Revision: 5343
http://astlinux.svn.sourceforge.net/astlinux/?rev=5343&view=rev
Author: abelbeck
Date: 2011-12-24 20:03:38 +0000 (Sat, 24 Dec 2011)
Log Message:
-----------
astlinux-makeimage, fix issue when CYL was not a multiple of 4
Modified Paths:
--------------
branches/1.0/scripts/astlinux-makeimage
Modified: branches/1.0/scripts/astlinux-makeimage
===================================================================
--- branches/1.0/scripts/astlinux-makeimage 2011-12-24 13:33:25 UTC (rev 5342)
+++ branches/1.0/scripts/astlinux-makeimage 2011-12-24 20:03:38 UTC (rev 5343)
@@ -114,7 +114,8 @@
rm -f bximage.out
# bximage insists on H=16... but most CF is H=64/S=63
-if [ $HEADS -eq 16 ]; then
+# Make sure CYL is a multiple of 4
+if [ $HEADS -eq 16 ] && [ $(($CYL % 4)) -eq 0 ]; then
CYL=$(($CYL / 4))
HEADS=$(($HEADS * 4))
fi
@@ -125,6 +126,8 @@
exit 1
fi
+echo "Disk Geometry: CYL=$CYL HEADS=$HEADS SECTORS=$SECTORS"
+
( if [ $AST_SIZE -gt 0 ]; then
echo -e "n\np\n1\n\n+${DOS_SIZE}M\nt\n6\na\n1"
echo -e "n\np\n2\n\n+${AST_SIZE}M\nt\n2\n83"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|