makedist.inc.sh: support for hostname configuration with domain (systemd)
This commit is contained in:
parent
cfdd9d4067
commit
d494ab5af5
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user