Bug#358917: Patch for rootflags support
Hi!
I stumbled across the same problem, but consider the problem way more grave
than just "wishlist". I am using an XFS root with quotas enabled, but XFS
doesn't support a remount to enable quotas and thus the /-remount with
usrquota,grpquota fails. This leaves / mounted read-only which breaks lots of
stuff and didn't even allow me to log in.
Attached is a small patch against 0.59b, very similar to the one proposed in
#358649 for the NFS root mount options. Please apply!
Cheers,
Thomas Luzat
diff -Naur initramfs-tools-0.59b.orig/init initramfs-tools-0.59b/init
--- initramfs-tools-0.59b.orig/init 2006-03-26 11:52:26.000000000 +0200
+++ initramfs-tools-0.59b/init 2006-04-01 19:54:23.695540177 +0200
@@ -55,6 +55,9 @@
;;
esac
;;
+ rootflags=*)
+ ROOTFLAGS="-o ${x#rootflags=}"
+ ;;
nfsroot=*)
NFSROOT=${x#nfsroot=}
;;
diff -Naur initramfs-tools-0.59b.orig/scripts/local initramfs-tools-0.59b/scripts/local
--- initramfs-tools-0.59b.orig/scripts/local 2006-03-26 21:46:26.000000000 +0200
+++ initramfs-tools-0.59b/scripts/local 2006-04-01 19:53:16.376392069 +0200
@@ -53,7 +53,7 @@
# FIXME This has no error checking
# Mount root
- mount ${roflag} -t ${FSTYPE} ${ROOT} ${rootmnt}
+ mount ${roflag} -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt}
[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/log-bottom"
run_scripts /scripts/local-bottom
Reply to: