change to manual setting of advanced hooks

This commit is contained in:
Tobias Powalowski 2009-07-25 11:18:20 +02:00
parent 0b0702241b
commit 00279cff09
2 changed files with 5 additions and 4 deletions

View file

@ -2,7 +2,7 @@
run_hook ()
{
if ! [ "${root}" = "" -a "${ip}" = "" ]; then
HOOKS="$(hwdetect --rootdevice=${root} --advanced)"
HOOKS="$advanced"
echo $HOOKS | grep -q lvm && export LVMRUN=1
echo $HOOKS | grep -q mdadm && export MDADMRUN=1
echo $HOOKS | grep -q encrypt && export ENCRYPTRUN=1

View file

@ -3,7 +3,7 @@
install ()
{
MODULES=""
BINARIES="hwdetect"
BINARIES=""
FILES=""
SCRIPT="arch_advanced_root"
}
@ -11,7 +11,8 @@ install ()
help ()
{
cat <<HELPEOF
This hook will use hwdetect to detect the needed
advanced hooks for your system.
This hook will override advanced hooks for your system.
Use advanced="your hooks hooks" eg. advanced="encrypt mdadm"
to override the defaults.
HELPEOF
}