From: Sebastian Pipping Date: Tue, 11 Jan 2011 14:41:43 +0000 (+0100) Subject: Create /bin/vg* symlinks when called as /linuxrc, too (bug #307855) X-Git-Tag: v3.4.11~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b4f310213ef80357880ba63a93b85922d7b07a44;p=genkernel.git Create /bin/vg* symlinks when called as /linuxrc, too (bug #307855) --- diff --git a/defaults/linuxrc b/defaults/linuxrc index 1fc733b..d873450 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -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