summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruwe <uwe@openbsd.org>2005-03-18 23:39:58 +0000
committeruwe <uwe@openbsd.org>2005-03-18 23:39:58 +0000
commitc3731ea8dd40adfbc5ce7350645180f2edbcc4ce (patch)
tree9f9da5a9d232a0ca6d1f1e5bf8698ac954a5f27f
parentoops, i was a teeny tiny bit over... (diff)
downloadwireguard-openbsd-c3731ea8dd40adfbc5ce7350645180f2edbcc4ce.tar.xz
wireguard-openbsd-c3731ea8dd40adfbc5ce7350645180f2edbcc4ce.zip
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/postinst9
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