integ/base/anaconda/centos/patches/0003-Set-default-hostname-to-localhost.patch
Long Li 6c94857032 CentOS 8: Upgrade anaconda to version 29.19.0.40
(1)Release Version Upgrade
(2)Matching code changes with el7 to el8
(3)Change applying patch command
Currently auto apply all patches as below
%autosetup -p1
instead of applying patches commmand by command:
%patchxxxx -p1

Story: 2006729
Task: 37687
Depends-On: https://review.opendev.org/#/c/696481/
Depends-On: https://review.opendev.org/#/c/696050/
Change-Id: I4a0dd93322144c13494e9ca4444f23b4b2aca0cf
Signed-off-by: Long Li <lilong-neu@neusoft.com>
2019-12-10 17:26:35 +08:00

26 lines
717 B
Diff

From d14b48ec201b4f90042f6292d537d5af5d78c6a6 Mon Sep 17 00:00:00 2001
From: Don Penney <don.penney@windriver.com>
Date: Thu, 23 Nov 2017 16:43:58 -0500
Subject: [PATCH] Set default hostname to localhost
---
pyanaconda/network.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index a0de470..47fda0c 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -57,7 +57,7 @@ networkConfFile = "%s/network" % (sysconfigDir)
hostnameFile = "/etc/hostname"
ipv6ConfFile = "/etc/sysctl.d/anaconda.conf"
ifcfgLogFile = "/tmp/ifcfg.log"
-DEFAULT_HOSTNAME = "localhost.localdomain"
+DEFAULT_HOSTNAME = "localhost"
ifcfglog = None
--
2.7.4