From b4f310213ef80357880ba63a93b85922d7b07a44 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 11 Jan 2011 15:41:43 +0100 Subject: [PATCH] Create /bin/vg* symlinks when called as /linuxrc, too (bug #307855) --- defaults/linuxrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.26.2