[pkg-fso-maint] Bug in http://pkg-fso.alioth.debian.org/freerunner/install.sh
Niccolo Rigacci
niccolo at rigacci.org
Thu Apr 14 12:29:53 UTC 2011
Hi,
I tried to install Debian on the OpenMoko Freerunner, I had
several problems with the install.sh script.
One problem is the cylinders calculation, which uses the shell
mathematical substitution. The script ignores that shell uses
integer numbers, here it is a workaround:
diff install.sh.orig install.sh
755c755
< lastcylinder=$(($cylinders-($cylinders*$SD_SWAP_SIZE/$mb)))
---
> lastcylinder=$(( $cylinders - (($cylinders * (1000000 * $SD_SWAP_SIZE / $mb)) / 1000000) ))
Another problem is with my fdisk (an updated SHR), which uses
block units per default instead of cylinders units. I had to add
an "u" command on each fdisk invocation, but I fear that it is a
fix which does not fit any environment.
--
Niccolo Rigacci
Firenze - Italy
More information about the pkg-fso-maint
mailing list