From: Harald Hoyer Date: Tue, 8 Oct 2013 08:30:00 +0000 (+0200) Subject: lvm: install thin utils for non-hostonly X-Git-Tag: 035~121 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3c0cef9a79608a45fee94ff6b31f9c63864923f;p=thirdparty%2Fdracut.git lvm: install thin utils for non-hostonly --- diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh index f98ffffdd..514addc1d 100755 --- a/modules.d/90lvm/module-setup.sh +++ b/modules.d/90lvm/module-setup.sh @@ -52,13 +52,17 @@ install() { inst lvm - get_host_lvs | while read line; do - printf "%s" " rd.lvm.lv=$line" - if ! [[ $_needthin ]]; then - [[ "$(lvs --noheadings -o segtype ${line%%/*} 2>/dev/null)" == *thin* ]] && _needthin=1 - fi - done >> "${initdir}/etc/cmdline.d/90lvm.conf" - echo >> "${initdir}/etc/cmdline.d/90lvm.conf" + if [[ $hostonly ]]; then + get_host_lvs | while read line; do + printf "%s" " rd.lvm.lv=$line" + if ! [[ $_needthin ]]; then + [[ "$(lvs --noheadings -o segtype ${line%%/*} 2>/dev/null)" == *thin* ]] && _needthin=1 + fi + done >> "${initdir}/etc/cmdline.d/90lvm.conf" + echo >> "${initdir}/etc/cmdline.d/90lvm.conf" + else + _needthin=1 + fi inst_rules "$moddir/64-lvm.rules"