]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lvm: remove unnecessary ${initdir} from lvm_scan.sh
authorAlexander Tsoy <alexander@tsoy.me>
Sat, 23 May 2020 18:42:18 +0000 (21:42 +0300)
committerDaniel Molkentin <daniel@molkentin.de>
Tue, 4 Aug 2020 07:53:51 +0000 (09:53 +0200)
lvm_scan.sh runs in the initramfs, so paths should not be prefixed with
${initdir}.

modules.d/90lvm/lvm_scan.sh

index 61a18b240d647c1e14d8700ca15fba8a5578fd27..ff8e66e21a37ec01c4e71fec41bccd2fce4f2c0b 100755 (executable)
@@ -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 name>:<snap lv name>"
     ORIG_LV=${SNAPSHOT%%:*}