1 |
>You didn't mention what package that belonged to, or what version you have |
2 |
>merged. However, I checked here and it looks as the patch says the |
3 |
>original does, and here's what I have: |
4 |
The latest stable lvm2-2.01.09 but as you said latter they all use the |
5 |
same script. |
6 |
|
7 |
>It appears most aren't running into this bug, |
8 |
>yet the number of bugs suggests there's a fair number of users. |
9 |
This bug will only effect users of root on lvm2 users |
10 |
|
11 |
>However, this appears to depend on which /dev entry is listed in fstab to |
12 |
>be mounted. |
13 |
Thats what I thought but it doesn't. lvdisplay which is used to get the |
14 |
list of drives allways seems to get the symbolic link(using |
15 |
sys-fs/lvm2-2.01.09). mount allways seems to get the actual device |
16 |
(using sys-apps/util-linux-2.12r). |
17 |
|
18 |
>Anyway, I'd certainly recommend filing the bug. |
19 |
I added it to the end of this bug which seemed relivant. |
20 |
http://bugs.gentoo.org/show_bug.cgi?id=57229 |
21 |
I also updated the patch so it should work with /usr folders on lvm2 and |
22 |
error message will show link no actual device name |
23 |
|
24 |
--- /lib/rcscripts/addons/lvm-stop.sh.orig 2005-11-01 19:07:25.000000000 +0900 |
25 |
+++ /lib/rcscripts/addons/lvm-stop.sh 2005-11-02 20:35:05.000000000 +0900 |
26 |
@@ -46,7 +46,10 @@ |
27 |
then |
28 |
|
29 |
ROOT_DEVICE=`mount|grep " / "|awk '{print $1}'` |
30 |
- if [ ! ${ROOT_DEVICE} = ${x} ] |
31 |
+ MOUNTED_DEVICE=${x} |
32 |
+ [ -L ${ROOT_DEVICE} ] && ROOT_DEVICE="`/bin/readlink ${ROOT_DEVICE}`" |
33 |
+ [ -L ${x} ] && MOUNTED_DEVICE="`/bin/readlink ${x}`" |
34 |
+ if [ ! ${ROOT_DEVICE} = ${MOUNTED_DEVICE} ] |
35 |
then |
36 |
ewarn " Unable to shutdown: ${x} " |
37 |
fi |
38 |
|
39 |
|
40 |
-- |
41 |
gentoo-amd64@g.o mailing list |