]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: shellcheck for modules.d/90lvm/module-setup.sh
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Feb 2021 12:26:12 +0000 (13:26 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 15 Feb 2021 10:00:37 +0000 (11:00 +0100)
modules.d/90lvm/module-setup.sh

index ccb55d4d636e1dbfc862ec4bfcc03ae443f92d06..3f866d85520183131cc0604d2fabfd5a98bfe1be 100755 (executable)
@@ -60,7 +60,7 @@ install() {
     inst_rules "$moddir/64-lvm.rules"
 
     if [[ $hostonly ]] || [[ $lvmconf = "yes" ]]; then
-        if [ -f $dracutsysrootdir/etc/lvm/lvm.conf ]; then
+        if [[ -f $dracutsysrootdir/etc/lvm/lvm.conf ]]; then
             inst_simple -H /etc/lvm/lvm.conf
             # FIXME: near-term hack to establish read-only locking;
             # use command-line lvm.conf editor once it is available
@@ -70,7 +70,7 @@ install() {
 
         export LVM_SUPPRESS_FD_WARNINGS=1
         # Also install any files needed for LVM system id support.
-        if [ -f $dracutsysrootdir/etc/lvm/lvmlocal.conf ]; then
+        if [[ -f $dracutsysrootdir/etc/lvm/lvmlocal.conf ]]; then
             inst_simple -H /etc/lvm/lvmlocal.conf
         fi
         eval $(lvm dumpconfig global/system_id_source &>/dev/null)