mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
change to manual setting of advanced hooks
This commit is contained in:
parent
0b0702241b
commit
00279cff09
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue