diff options
author | 2005-11-02 21:01:32 +0000 | |
---|---|---|
committer | 2005-11-02 21:01:32 +0000 | |
commit | e141c3dff3f8173c13aac52c48155189db9dc8ec (patch) | |
tree | 546bfd906a694b67b0815b59115af50c0765b621 | |
parent | Removed keywords that came my own overlay. (diff) | |
download | gentoo-2-e141c3dff3f8173c13aac52c48155189db9dc8ec.tar.gz gentoo-2-e141c3dff3f8173c13aac52c48155189db9dc8ec.tar.bz2 gentoo-2-e141c3dff3f8173c13aac52c48155189db9dc8ec.zip |
Update lvm2-stop.sh for bug 57229
(Portage version: 2.0.53_rc6)
-rw-r--r-- | sys-fs/lvm2/ChangeLog | 5 | ||||
-rwxr-xr-x | sys-fs/lvm2/files/lvm2-stop.sh | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/sys-fs/lvm2/ChangeLog b/sys-fs/lvm2/ChangeLog index 93917d6ec53e..4a026d30441c 100644 --- a/sys-fs/lvm2/ChangeLog +++ b/sys-fs/lvm2/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-fs/lvm2 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.47 2005/10/14 02:58:05 rocket Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.48 2005/11/02 21:01:32 rocket Exp $ + + 02 Nov 2005; Eric Edgar <rocket@gentoo.org> files/lvm2-stop.sh: + Update lvm2-stop.sh for bug 57229 *lvm2-2.01.14 (14 Oct 2005) diff --git a/sys-fs/lvm2/files/lvm2-stop.sh b/sys-fs/lvm2/files/lvm2-stop.sh index 0fac0a61b514..b85b465b27c2 100755 --- a/sys-fs/lvm2/files/lvm2-stop.sh +++ b/sys-fs/lvm2/files/lvm2-stop.sh @@ -1,5 +1,5 @@ # /lib/rcscripts/addons/lvm2-stop.sh -# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/lvm2-stop.sh,v 1.4 2005/06/18 07:11:05 rocket Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/lvm2-stop.sh,v 1.5 2005/11/02 21:01:32 rocket Exp $ # Stop LVM2 if [ -x /sbin/vgchange ] && \ @@ -46,7 +46,10 @@ then then ROOT_DEVICE=`mount|grep " / "|awk '{print $1}'` - if [ ! ${ROOT_DEVICE} = ${x} ] + MOUNTED_DEVICE=${x} + [ -L ${ROOT_DEVICE} ] && ROOT_DEVICE="`/bin/readlink ${ROOT_DEVICE}`" + [ -L ${x} ] && MOUNTED_DEVICE="`/bin/readlink ${x}`" + if [ ! ${ROOT_DEVICE} = ${MOUNTED_DEVICE} ] then ewarn " Unable to shutdown: ${x} " fi |