return 1
fi
- findmodule "dm-mirror"
+ find_module "dm-mirror"
have_dmraid=yes
return 0
}
local rootblkdev=${disk#/dev/}
local n
- if [ "$pack_version_long" -lt "002004021" ]; then
+ if [ "$kernel_version_long" -lt "002004021" ]; then
debug "Finding IDE modules for kernels <= 2.4.20"
for n in $PREIDEMODSOLD; do
- findmodule "$n"
+ find_module "$n"
done
else
local tryauto=1
local mod idemodules=$(modprobe_conf | awk '/ide_hostadapter/ && ! /^[\t ]*#/ { print $3; }')
for mod in $idemodules; do
tryauto=0;
- findmodule "$mod"
+ find_module "$mod"
done
if [ "$tryauto" -eq 1 ]; then
# }}}
for nd in $idemodules; do
- findmodule "-$nd"
+ find_module "-$nd"
done
# }}}
# else tryauto {{{
# }}}
fi
else
- findmodule "$n"
+ find_module "$n"
fi
done
fi
die "Lost cryptsetup device meanwhile?"
fi
- findmodule "dm-crypt"
+ find_module "dm-crypt"
# TODO: autodetect
- findmodule "aes"
- findmodule "cbc"
+ find_module "aes"
+ find_module "cbc"
have_luks=yes
fi
if [ "$LVMTOOLSVERSION" = "2" ]; then
- findmodule "-dm-mod"
+ find_module "-dm-mod"
elif [ "$LVMTOOLSVERSION" = "1" ]; then
- findmodule "-lvm"
- findmodule "-lvm-mod"
+ find_module "-lvm"
+ find_module "-lvm-mod"
else
die "LVM version $LVMTOOLSVERSION is not supported yet."
fi
local hw hwhandlers=$(echo "$info" | awk '/hwhandler=1/{sub(/.*hwhandler=1 /, ""); sub(/\]$/, ""); print}')
for hw in $hwhandlers; do
- findmodule "dm-$hw"
+ find_module "dm-$hw"
done
local target targets=$(echo "$info" | awk '/prio=/{print $2}' | sort -u)
for target in $targets; do
- findmodule "dm-$target"
+ find_module "dm-$target"
done
- findmodule "dm-mod"
+ find_module "dm-mod"
return 0
}