diff options
author | Martin Schwenke <martin@meltin.net> | 2014-06-16 20:14:20 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2014-06-17 11:23:01 +1000 |
commit | 5971385948588835dd9cde4d9f7d63fd7f06aa5a (patch) | |
tree | 9d13b8094840050dabdf7c3c5824fd43df0739b1 /config.d | |
parent | 6a6a6d44505c612c3bbd32e107a6da98e52a3290 (diff) | |
download | autocluster-5971385948588835dd9cde4d9f7d63fd7f06aa5a.tar.gz autocluster-5971385948588835dd9cde4d9f7d63fd7f06aa5a.tar.xz autocluster-5971385948588835dd9cde4d9f7d63fd7f06aa5a.zip |
Move service enable/disable in kickstart to per-RHEL config file
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'config.d')
-rw-r--r-- | config.d/00base.defconf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config.d/00base.defconf b/config.d/00base.defconf index e5530ad..ee750ff 100644 --- a/config.d/00base.defconf +++ b/config.d/00base.defconf @@ -411,6 +411,11 @@ rhel_get_packages () echo "$installdir/templates/RHEL${RHEL_VERSION%%.*}.packages" } +rhel_get_services () +{ + echo "$installdir/templates/RHEL${RHEL_VERSION%%.*}.services" +} + rhel_post_config_hook () { if [ "$ISO" = "@uto" ] ; then @@ -436,6 +441,10 @@ rhel_post_config_hook () if [ "$RHEL_PACKAGES" = "@uto" ] ; then RHEL_PACKAGES=$(rhel_get_packages) || exit $? fi + + if [ "$RHEL_SERVICES" = "@uto" ] ; then + RHEL_SERVICES=$(rhel_get_services) || exit $? + fi } register_hook post_config_hooks rhel_post_config_hook @@ -448,6 +457,8 @@ defconf RHEL_VERSION "6.2" \ defconf RHEL_PACKAGES "@uto" +defconf RHEL_SERVICES "@uto" + defconf ISO_DIR "/virtual/ISO" \ "<dir>" "directory for ISO images, prepended to $ISO if not absolute" |