>You didn't mention what package that belonged to, or what version you have >merged. However, I checked here and it looks as the patch says the >original does, and here's what I have: The latest stable lvm2-2.01.09 but as you said latter they all use the same script.
>It appears most aren't running into this bug, >yet the number of bugs suggests there's a fair number of users. This bug will only effect users of root on lvm2 users >However, this appears to depend on which /dev entry is listed in fstab to >be mounted. Thats what I thought but it doesn't. lvdisplay which is used to get the list of drives allways seems to get the symbolic link(using sys-fs/lvm2-2.01.09). mount allways seems to get the actual device (using sys-apps/util-linux-2.12r). >Anyway, I'd certainly recommend filing the bug. I added it to the end of this bug which seemed relivant. http://bugs.gentoo.org/show_bug.cgi?id=57229 I also updated the patch so it should work with /usr folders on lvm2 and error message will show link no actual device name --- /lib/rcscripts/addons/lvm-stop.sh.orig 2005-11-01 19:07:25.000000000 +0900 +++ /lib/rcscripts/addons/lvm-stop.sh 2005-11-02 20:35:05.000000000 +0900 @@ -46,7 +46,10 @@ 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 -- [email protected] mailing list
