[PATCH] 'mu' problem with e2fsprogs >= 1.15

From: François Désarménien (desar@club-internet.fr)
Date: Tue Jan 18 2000 - 09:39:08 CET


----------------------------------------------------------------------
As it seems Michele is unreachable through various email address
I found (even the one from the mulinux home page !), as I hope he's
on mulinux mailing list, so I finally post here...
----------------------------------------------------------------------

Hello,

First, thank you for giving us mulinux: it's great !

I'm hacking it to make our own floppy rescue disk as
I find it much more clearer than Tom's rtbt to understand.

What I want to make is a one floppy a customer can boot, then
forget, that'll enable me to connect via modem remotly and find
all tools I need for recovery from tape on SCSI servers...

But I came upon a glitch here, at home. On my box, I run e2fsprogs
version 1.15, which sets ext2 fs to revision 1 by default, not
understood by kernels 2.0.x. So: breakage.

Here is a very simple patch (which should work with older versions
of e2fsprogs) against 6r4 which adds the '-r0' flag to mkfs.ext2 to
force revision level 0. Only the 'mu' script is affected.

Ciao,

François Désarménien

PS: you should change your email address in the various docs, as
it seems that 'andreoli@pisoft.it' is no longer valid...my first
mail has been rejected.

PPS: neither is 'mu.andreoli@tin.it'

--- mu.orig Sun Jan 16 16:12:37 2000
+++ mu Sun Jan 16 16:13:39 2000
@@ -160,7 +160,7 @@
 {
 mkdir $TMP/fs.tmp 2>/dev/null
 dd if=/dev/zero of=$TMP/fs bs=1k count=100
-mkfs.ext2 -F -q $TMP/fs
+mkfs.ext2 -r0 -F -q $TMP/fs
 mount -o loop $TMP/fs $TMP/fs.tmp
 rc=$?
 
@@ -246,7 +246,7 @@
 
 dd if=/dev/zero of=USR bs=1k count=$USR_RAW_SIZE
 echo
-eval mkfs.ext2 -q -F -m 0 USR
+eval mkfs.ext2 -r0 -q -F -m 0 USR
 umount $mount_point 2>/dev/null
 mount -o loop USR $mount_point
 rm -r $mount_point/lost*
@@ -278,7 +278,7 @@
 
 dd if=/dev/zero of=BOOT.raw bs=1k count=$ROOT_OFFSET
 echo
-eval mkfs.ext2 -F -q -m 0 BOOT.raw
+eval mkfs.ext2 -r0 -F -q -m 0 BOOT.raw
 
 mount -o loop BOOT.raw $mount_point
 rm -r $mount_point/lost* 2>/dev/null
@@ -308,7 +308,7 @@
 
 dd if=/dev/zero of=ROOT bs=1k count=$ROOT_RAW_SIZE
 echo
-eval mkfs.ext2 -F -q -m 0 -i ${ROOT_INODES} ROOT
+eval mkfs.ext2 -r0 -F -q -m 0 -i ${ROOT_INODES} ROOT
 mount -o loop ROOT $mount_point
 rm -r $mount_point/lost*
 


---------------------------------------------------------------------
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:13 CET