Merge pull request #19 from trbednarzyk/patch-1

Fix bug in lvm hook with lvm_discard unset
This commit is contained in:
illiliti 2020-11-19 17:18:51 +03:00 committed by GitHub
commit 5d8dc4e295
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}"