From d494ab5af502589046bc1557b203c8f8cb2c493e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 8 Oct 2014 21:24:45 +0200 Subject: [PATCH] makedist.inc.sh: support for hostname configuration with domain (systemd) --- makedist.inc.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/makedist.inc.sh b/makedist.inc.sh index 0d244c8..aeed5c1 100644 --- a/makedist.inc.sh +++ b/makedist.inc.sh @@ -85,10 +85,7 @@ fi [[ "$TARGET_HOSTNAME" ]] || TARGET_HOSTNAME="$MAKEDIST_TARGET" [[ "$TARGET_DOMAIN" ]] || TARGET_DOMAIN="localdomain" -echo "$TARGET_HOSTNAME" > $MOUNTDIR/etc/hostname -sed -i "s|HOSTNAME=.*|HOSTNAME=$TARGET_HOSTNAME|" $MOUNTDIR/etc/sysconfig/network -sed -i "s|\(127\.0\.0\.1\W*\)\(.*\)|\1 $TARGET_HOSTNAME.$TARGET_DOMAIN $TARGET_HOSTNAME \2|" \ - $MOUNTDIR/etc/hosts +echo "$TARGET_HOSTNAME.$TARGET_DOMAIN" > $MOUNTDIR/etc/hostname #install_rpms_by_target "Installing tools packages for ${MAKEDIST_TARGET} target" ${MAKEDIST_TARGET}-tools "" install_rpms_by_target "Installing ${PLATFORM} platform packages" ${MAKEDIST_TARGET}-${PLATFORM} "${RPMEXTRAARGS}"