blob: 61c0fcf804025a20069f6878e17fdaa607e69e75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Hey Emacs, this is a -*- shell-script -*- !!!
defconf KICKSTART "$installdir/templates/nas-kickstart.cfg" \
"<file>" "choice of kickstart file"
defconf KS_KEYBOARD "us" \
"<kbd>" "keyboard layout for each node"
defconf KS_LANGUAGE "${LANG:-en_US.UTF-8}" \
"<locale>" "locale for installer to use"
defconf KS_RHEL_PACKAGES "@uto"
defconf KS_RHEL_SERVICES "@uto"
# any extra packages to install. List one on each line. To force a package
# not to be installed, list it with a leading -
defconf KS_EXTRA_PACKAGES '' \
"<list>" "extra packages for kickstart to install"
defconf KS_EXTRA_CHKCONFIGS "" \
"<chkconfigs>" "extra chkconfig commands to run in post-install"
defconf KS_STANDARD_POSTINSTALL "$installdir/templates/basic-postinstall.sh" \
"<file>" "standard kickstart postinstall script - change with care"
defconf KS_POSTINSTALL_TEMPLATE "" \
"<file>" "extra script to be incorporated into kickstart post-install"
defconf KS_KERNEL_OPTS "rhgb console=tty1 console=ttyS0,19200 nodmraid nompath" \
"<opts>" "options passed by kickstart to the kernel"
defconf KS_DONE_MESSAGE "you may safely reboot your system|System halted.|Power down." \
"<string>" "string indicating kickstart install is complete"
ks_post_config_hook ()
{
if [ "$KS_RHEL_PACKAGES" = "@uto" ] ; then
KS_RHEL_PACKAGES="$installdir/templates/RHEL${RHEL_VERSION%%.*}.packages"
fi
if [ "$KS_RHEL_SERVICES" = "@uto" ] ; then
KS_RHEL_SERVICES="$installdir/templates/RHEL${RHEL_VERSION%%.*}.services"
fi
}
register_hook post_config_hooks ks_post_config_hook
|