diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2005-03-18 23:39:59 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2005-03-18 23:39:59 +0000 |
commit | 215db37e52279863f986704cc2c4b06dc654ac59 (patch) | |
tree | 02ce86c6fab35b21f78536f5077467697922f732 | |
parent | 31ec8d7993727cf54094652adb6c601d41ffadc6 (diff) |
Remove journal from ext3 filesystems mounted on /hdd[123] to avoid
the Linux startup script from bailing out with "HDD2 Error". All
ext3 filesystems are thereby converted into ext2 filesystems that
can be mounted under OpenBSD.
-rw-r--r-- | distrib/zaurus/ipk/postinst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/distrib/zaurus/ipk/postinst b/distrib/zaurus/ipk/postinst index d1125213288..33854638e34 100644 --- a/distrib/zaurus/ipk/postinst +++ b/distrib/zaurus/ipk/postinst @@ -21,6 +21,15 @@ mv tmp rc.rofilesys chown root:root rc.rofilesys chmod 775 rc.rofilesys +# Convert all mounted ext3 filesystems back into ext2 on reboot. +for dev in `mount | awk '/on \/hdd[123] type ext3/ {print $1}'`; do + cat <<- EOF | debugfs + open -f -w ${dev} + features -has_journal -needs_recovery + quit +EOF +done + rm -f rc.zboot rm -f zboot rm -f zbsdmod.o |