[pkg-fso-maint] [Fwd: patch to install.sh (Debian at FreeRunner)]
steffen_moeller at gmx.de
Mon Feb 2 15:00:58 UTC 2009
Jens Seidel wrote:
> On Mon, Feb 02, 2009 at 02:25:16PM +0100, Steffen Moeller wrote:
>> Jens Seidel wrote:
>>> On Mon, Feb 02, 2009 at 11:28:41AM +0100, Joachim Breitner wrote:
>>> The script currently assumes that either FAT or ext2 is supported. The last
>>> (which was also the first) time I used it from Qtopia, it's kernel supported
>>> only ext3. This forced me to replace ext2 by ext3 a few times in the script.
>>> It's nothing complicated but it should be automated based on the current kernel
>>> and user space utilities.
>> The current script works with an ext3 partition. I had tried it ... by accident :)
> But how to generate the ext3 partition? As usual I do not find my patched install.sh
> script but the following needs to be adapted:
ah, I had performed the partitioning manually.
if [ -z "$fs" ]; then
if [ ! -r /proc/filesystems ]; then
echo "The filesystem to prepare for the second partition is unspecified, and there is
no file '/proc/filesystems' from which to learn about what your kernel can do."
supported="ext2 ext3 ext4"
for f in ext3 ext2 ext4; do
if cat /proc/filesystems | cut -f2 | grep -q "^$f"; then
if [ -z $supported ]; then
echo "We did not find any 'ext' filesystem to be supported by the current kernel.
Please specify the filesystem to use via the FS environment variable and restart the
for f in $supported; do
if [ -x "/sbin/mkfs.$f" -o -x "/usr/sbin/mkfs.$f" ]; then
if [ -z "$fs" ]; then
echo "Could not determine filesystem to use. Please specify the filesystem via the FS
environment variable and restart the install script."
mount -t $fs
> mount -t ext2 (yep, ext2 and 3 are apart from the journal compatible, nevertheless
> ext2 need not be supported even if ext3 is)
> The uboot specific settings should not be changed to ext3 (config file,
> ext2load, ...).
>> The ext3 fs is only interpreted as ext2 by some magic, as shown at boot time. Is it just
>> the entry in the /etc/fstab? I have not checked.
> Yep, really minor stuff. But one has to test it, perform a new install, ...
> How about ext4???
I tried addressing this in the scriptlet above.
I can do the new installation once my new SD card arrives. It is a rather longish process
when executed on the Moko, though this is your gold standard, right?
More information about the pkg-fso-maint