Fix bug in lvm hook with lvm_discard unset
This commit is contained in:
parent
4c554e0408
commit
6bebe0ba50
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user