Simplify setting of KS_RHEL_PACKAGES and KS_RHEL_SERVICES
authorMartin Schwenke <martin@meltin.net>
Tue, 24 Jun 2014 01:29:58 +0000 (11:29 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 2 Jul 2014 04:17:17 +0000 (14:17 +1000)
The functions are unnecessary.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config.d/02kickstart.defconf

index a09dec4be4549d756dca3b4717b05f88d74652d4..61c0fcf804025a20069f6878e17fdaa607e69e75 100644 (file)
@@ -33,24 +33,14 @@ defconf KS_KERNEL_OPTS "rhgb console=tty1 console=ttyS0,19200 nodmraid nompath"
 defconf KS_DONE_MESSAGE "you may safely reboot your system|System halted.|Power down." \
        "<string>" "string indicating kickstart install is complete"
 
-ks_get_packages ()
-{
-    echo "$installdir/templates/RHEL${RHEL_VERSION%%.*}.packages"
-}
-
-ks_get_services ()
-{
-    echo "$installdir/templates/RHEL${RHEL_VERSION%%.*}.services"
-}
-
 ks_post_config_hook ()
 {
     if [ "$KS_RHEL_PACKAGES" = "@uto" ] ; then
-       KS_RHEL_PACKAGES=$(ks_get_packages) || exit $?
+       KS_RHEL_PACKAGES="$installdir/templates/RHEL${RHEL_VERSION%%.*}.packages"
     fi
 
     if [ "$KS_RHEL_SERVICES" = "@uto" ] ; then
-       KS_RHEL_SERVICES=$(ks_get_services) || exit $?
+       KS_RHEL_SERVICES="$installdir/templates/RHEL${RHEL_VERSION%%.*}.services"
     fi
 }