From: Alexander Tsoy Date: Sat, 23 May 2020 18:42:18 +0000 (+0300) Subject: lvm: remove unnecessary ${initdir} from lvm_scan.sh X-Git-Tag: 051~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe02bc78accf4aaa39ab33adcdb5aaa71df90b30;p=thirdparty%2Fdracut.git lvm: remove unnecessary ${initdir} from lvm_scan.sh lvm_scan.sh runs in the initramfs, so paths should not be prefixed with ${initdir}. --- diff --git a/modules.d/90lvm/lvm_scan.sh b/modules.d/90lvm/lvm_scan.sh index 61a18b240..ff8e66e21 100755 --- a/modules.d/90lvm/lvm_scan.sh +++ b/modules.d/90lvm/lvm_scan.sh @@ -91,7 +91,7 @@ export LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1 if [ -n "$SNAPSHOT" ] ; then # HACK - this should probably be done elsewhere or turned into a function # Enable read-write LVM locking - sed -i -e 's/\(^[[:space:]]*\)locking_type[[:space:]]*=[[:space:]]*[[:digit:]]/\1locking_type = 1/' ${initdir}/etc/lvm/lvm.conf + sed -i -e 's/\(^[[:space:]]*\)locking_type[[:space:]]*=[[:space:]]*[[:digit:]]/\1locking_type = 1/' /etc/lvm/lvm.conf # Expected SNAPSHOT format ":" ORIG_LV=${SNAPSHOT%%:*}