Create /bin/vg* symlinks when called as /linuxrc, too (bug #307855)
authorSebastian Pipping <sebastian@pipping.org>
Tue, 11 Jan 2011 14:41:43 +0000 (15:41 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 11 Jan 2011 14:41:43 +0000 (15:41 +0100)
defaults/linuxrc

index 1fc733b152489ff937606dc392029b7c230c1cd3..d87345092a1c7f026a34a2f1c911158703e9619a 100755 (executable)
@@ -29,12 +29,12 @@ mount -o remount,rw / >/dev/null 2>&1
 if [ "$0" = '/init' ]
 then
        [ -e /linuxrc ] && rm /linuxrc
-        
-       if [ -e /bin/lvm ]
-       then
-               ln -s /bin/lvm /bin/vgscan
-               ln -s /bin/lvm /bin/vgchange
-       fi
+fi
+
+if [ -e /bin/lvm ]
+then
+       [ -e /bin/vgscan   ] || ln -s /bin/lvm /bin/vgscan
+       [ -e /bin/vgchange ] || ln -s /bin/lvm /bin/vgchange
 fi
 
 quiet_kmsg