[Lunar-commits] r14879 - moonbase/trunk/filesys/e2fsprogs/init.d
Auke Kok
sofar at lunar-linux.org
Fri May 20 14:56:47 UTC 2005
Author: sofar
Date: 2005-05-20 14:56:46 +0000 (Fri, 20 May 2005)
New Revision: 14879
Modified:
moonbase/trunk/filesys/e2fsprogs/init.d/mount
Log:
Fix sorted mounting!
Modified: moonbase/trunk/filesys/e2fsprogs/init.d/mount
===================================================================
--- moonbase/trunk/filesys/e2fsprogs/init.d/mount 2005-05-20 14:53:03 UTC (rev 14878)
+++ moonbase/trunk/filesys/e2fsprogs/init.d/mount 2005-05-20 14:56:46 UTC (rev 14879)
@@ -250,7 +250,8 @@
# We mounted devfs before, now a hack to get it into /etc/mtab
test "${DEVNODES}" = "devfs" && run_without_msg "mount -f -t devfs devfs /dev"
- grep -v '#' /etc/fstab | grep -v ^$ | grep -v noauto | while read DEVICE MOUNTPOINT FSTYPE OPTS REST
+ # sort the filesystems, swapfiles at bottom, squeeze separators into spaces
+ grep -v -e '#\|^$\|noauto' /etc/fstab | tr -s '[:space:]' | tr '\t' ' ' | LC_ALL=C sort -k2 | while read DEVICE MOUNTPOINT FSTYPE OPTS REST
do
case ${MOUNTPOINT} in
/|/proc|/sys|/dev|/dev/pts) # been mounted previously
More information about the Lunar-commits
mailing list