Debian KS: Ensure /etc/hostname is not configured
Eliminates command delays (i.e sudo) driven by DNS querying the host name. This also aligns with post install behavior under CentOS. Test Plan: PASS - Build ISO PASS - Install ISO + confirm 'localhost' hostname PASS - Ansible bootstrap + confirm 'controller-0' hostname Change-Id: I25dc2b2619fc99bb97bfdae30b6a01e0a248a6fd Story: 2009964 Task: 45130 Signed-off-by: Robert Church <robert.church@windriver.com>
This commit is contained in:
parent
7927d8928d
commit
35651387de
@ -1430,15 +1430,8 @@ update_platform_conf "http_port=${http_port}"
|
|||||||
# From post_common.cfg (all hosts)
|
# From post_common.cfg (all hosts)
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
# Should handle controller-0 install from external server and USB
|
# Ensure quick command response (i.e. sudo)
|
||||||
is_system_node_install
|
rm /etc/hostname
|
||||||
if [ ${?} -ne 0 ] ; then
|
|
||||||
# Unset the hostname
|
|
||||||
rm /etc/hostname
|
|
||||||
if [ "${controller}" = true ] ; then
|
|
||||||
echo "controller-0" > /etc/hostname
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# TODO: is this needed with LAT ??
|
# TODO: is this needed with LAT ??
|
||||||
# If using a serial install make sure to add a getty on the tty1
|
# If using a serial install make sure to add a getty on the tty1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user