PKGBUILDs/extra/evms/evms_install
2009-10-09 21:23:22 -05:00

40 lines
1.3 KiB
Bash

# vim: set ft=sh:
#mkinitcpio hook for loading a root filesystem on an EVMS volume.
#2007-08-13 02:15 UTC by Felix (01001101@femail.mine.nu)
install () {
MODULES="$(checked_modules "drivers/md/*")"
BINARIES="evms_activate"
FILES=""
SCRIPT="evms"
add_binary "/sbin/evms_activate" "/sbin/evms_activate"
add_file "/usr/lib/libgcc_s.so.1" "/usr/lib/libgcc_s.so.1"
add_file "/lib/libuuid.so.1" "/lib/libuuid.so.1"
add_file "/etc/evms.conf" "/etc/evms.conf"
add_full_dir "/usr/lib/evms"
}
help ()
{
cat<<HELPEOF
This hook loads the necessary modules for using a root filesystem managed by
EVMS and then runs evms_activate. The root filesystem can be any kind of EVMS
volume; only /boot needs to be a 'compatibility' partition.
IMPORTANT NOTE!
EVMS RAID volumes do not look like normal RAID volumes if they are inside any
kind of container object. Consequently, things like the [autodetect] hook may
not see them. You should remove the [autodetect] hook from your
mkinitcpio.conf if you plan to use this EVMS hook and your root filesystem is
EVMS RAID.
Kernel Parameters:
No special ones just now. Specify your root= as whatever the EVMS path to it
will be, e.g.
::: Example ::: root=/dev/evms/root
Do NOT specify RAID arrays if you use EVMS to manage them; EVMS will take
care of that for you.
HELPEOF
}