|
|
@ -52,13 +52,17 @@ install() { |
|
|
|
|
|
|
|
|
|
|
|
inst lvm |
|
|
|
inst lvm |
|
|
|
|
|
|
|
|
|
|
|
get_host_lvs | while read line; do |
|
|
|
if [[ $hostonly ]]; then |
|
|
|
printf "%s" " rd.lvm.lv=$line" |
|
|
|
get_host_lvs | while read line; do |
|
|
|
if ! [[ $_needthin ]]; then |
|
|
|
printf "%s" " rd.lvm.lv=$line" |
|
|
|
[[ "$(lvs --noheadings -o segtype ${line%%/*} 2>/dev/null)" == *thin* ]] && _needthin=1 |
|
|
|
if ! [[ $_needthin ]]; then |
|
|
|
fi |
|
|
|
[[ "$(lvs --noheadings -o segtype ${line%%/*} 2>/dev/null)" == *thin* ]] && _needthin=1 |
|
|
|
done >> "${initdir}/etc/cmdline.d/90lvm.conf" |
|
|
|
fi |
|
|
|
echo >> "${initdir}/etc/cmdline.d/90lvm.conf" |
|
|
|
done >> "${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" |
|
|
|
|
|
|
|
|
|
|
|