Fix bug in lvm hook with lvm_discard unset

This commit is contained in:
Timothy Robert Bednarzyk 2020-11-18 20:54:44 -05:00 committed by GitHub
parent 4c554e0408
commit 6bebe0ba50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ export DM_DISABLE_UDEV=1
mkdir -p /run/lvm /run/lock/lvm
set -- \
--sysinit -qq -aay "${lvm_discard:+--config=devices{issue_discards=1}}"
--sysinit -qq -aay "${lvm_discard:+--config=devices\{issue_discards=1\}}"
if [ "$lvm_group" ] && [ "$lvm_name" ]; then
lvm lvchange $@ "${lvm_group}/${lvm_name}"