lvm: install thin utils for non-hostonly

master
Harald Hoyer 2013-10-08 10:30:00 +02:00
parent 2f6ed29d04
commit a3c0cef9a7
1 changed files with 11 additions and 7 deletions

View File

@ -52,6 +52,7 @@ install() {


inst lvm inst lvm


if [[ $hostonly ]]; then
get_host_lvs | while read line; do get_host_lvs | while read line; do
printf "%s" " rd.lvm.lv=$line" printf "%s" " rd.lvm.lv=$line"
if ! [[ $_needthin ]]; then if ! [[ $_needthin ]]; then
@ -59,6 +60,9 @@ install() {
fi fi
done >> "${initdir}/etc/cmdline.d/90lvm.conf" done >> "${initdir}/etc/cmdline.d/90lvm.conf"
echo >> "${initdir}/etc/cmdline.d/90lvm.conf" echo >> "${initdir}/etc/cmdline.d/90lvm.conf"
else
_needthin=1
fi


inst_rules "$moddir/64-lvm.rules" inst_rules "$moddir/64-lvm.rules"