summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2005-06-14 09:46:46 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2005-06-14 09:46:46 +0000
commita257a3aef7c9aa01b2aefbc1d41260dba663609c (patch)
treed2028a2045600b766f25fbbd98760f4bccd95775 /sys-fs/gfs/files
parentadd lirc (diff)
downloadgentoo-2-a257a3aef7c9aa01b2aefbc1d41260dba663609c.tar.gz
gentoo-2-a257a3aef7c9aa01b2aefbc1d41260dba663609c.tar.bz2
gentoo-2-a257a3aef7c9aa01b2aefbc1d41260dba663609c.zip
fixed gfs mounting. Closed bug #93903.
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-fs/gfs/files')
-rwxr-xr-xsys-fs/gfs/files/gfs.rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-fs/gfs/files/gfs.rc b/sys-fs/gfs/files/gfs.rc
index 43015cec417c..601ee540b574 100755
--- a/sys-fs/gfs/files/gfs.rc
+++ b/sys-fs/gfs/files/gfs.rc
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/gfs/files/gfs.rc,v 1.6 2005/03/26 14:39:09 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/gfs/files/gfs.rc,v 1.7 2005/06/14 09:46:46 xmerlin Exp $
opts="${opts} mountall"
@@ -48,8 +48,8 @@ mount_gfs_filesystems() {
einfo "Mounting GFS filesystems"
device=""
for device in ${remaining_verified}; do
- local target="$(awk '!/^#/ && $3 == "gfs" { if ("$1" -eq "${device}" ) print $2 }' /etc/fstab)"
- local mounted="$(awk '$3 == "gfs" { if ("$1" -eq "${device}" ) print $2 }' /proc/mounts)"
+ local target="$(awk '!/^#/ && $3 == "gfs" && $1 == device { print $2 }' device=${device} /etc/fstab)"
+ local mounted="$(awk '$3 == "gfs" && $1 == device { print $2 }' device=${device} /proc/mounts)"
# mount only filesystems not already mounted
if [ -z "${mounted}" ]; then