From: Miguel Angel (maacruz@navegalia.com)
Date: Fri May 12 2000 - 22:23:46 CEST
On Thu, 11 May 2000, Michele Andreoli kindly wrote:
> On Thu, May 11, 2000 at 08:29:14PM +0200, Miguel Angel nicely wrote:
> >
> > Hi all!
> >
> > Yes, the problem is umsdos, but i corrected this bug in mulinux-8r3b.
> > Please, try the 8r4 or later mu script, it will work :-)
> >
>
> Please, explain me what fix you are refering in "mu". The -O option?
> Michele
Hi Michele!
As you can see, now the creation of BOOT has to steps:
- First one: measure size using du under the umsdos/ext2 filesystem, and use
this size to create a first BOOT.raw (original behavior)
- Second one: measure again the size under the mounted BOOT.raw, and use it to
create the definitive BOOT.raw
Code from line 291 of mu script follows:
set -- `du -k -s $TREE/startup`
ROOT_OFFSET=`expr $1 + $BOOT_FREE`
dd if=/dev/zero of=BOOT.raw bs=1k count=$ROOT_OFFSET >/dev/null 2>&1
echo
eval mkfs.ext2 $MKFS_OPT BOOT.raw 2>&1 >/dev/null
mount -o loop BOOT.raw $mount_point >/dev/null 2>&1
rm -r $mount_point/lost* 2>/dev/null
cp -af $TREE/startup/* $mount_point
# Second step -> accurate size
set -- `du -k -s $mount_point`
ROOT_OFFSET=`expr $1 + $BOOT_FREE`
umount $mount_point
dd if=/dev/zero of=BOOT.raw bs=1k count=$ROOT_OFFSET
eval mkfs.ext2 $MKFS_OPT BOOT.raw
mount -o loop BOOT.raw $mount_point
rm -r $mount_point/lost* 2>/dev/null
cp -af $TREE/startup/* $mount_point
umount $mount_point
-- Don't see the world trought a window, be open{source}minded, and be free :-) http://www.navegalia.com/personal/maacruz --------------------------------------------------------------------- To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk For additional commands, e-mail: mulinux-help@sunsite.auc.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:14 CET