Bug 71516 - rc.sysinit doesn't reset hostname if /.unconfigured is present
Summary: rc.sysinit doesn't reset hostname if /.unconfigured is present
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-14 17:59 UTC by Marc MERLIN
Modified: 2014-03-17 02:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-29 20:14:25 UTC
Embargoed:


Attachments (Terms of Use)

Description Marc MERLIN 2002-08-14 17:59:53 UTC
I install machines with kickstart and touch /.unconfigured in the kickstart
post, there is no option to set my hostname (even though your script actually
resets it from the value of HOSTNAME at the end, but nothing changes that)

Something more fancy than this would be nice:
(there isn't a text mode "change your hostname" tool, is there?)

--- /etc/rc.d/rc.sysinit.redhat Tue Aug 13 18:00:32 2002
+++ rc.sysinit.local    Wed Aug 14 10:27:28 2002
@@ -568,6 +568,11 @@

 # Configure machine if necessary.
 if [ -f /.unconfigured ]; then
+    echo "Please type the new hostname (fully qualified name: server.domain.tld)"
+    read HOSTNAME
+    perl -p -i -e "s/^HOSTNAME=.*/HOSTNAME=$HOSTNAME/" /etc/sysconfig/network
+    perl -p -i -e "s/^127.0.0.1.*/127.0.0.1         $HOSTNAME localhost/"
/etc/hosts
+

Comment 1 Bill Nottingham 2005-09-29 20:14:25 UTC
Closing bugs on older, no longer supported, releases. Apologies for any lack of
response.

If this persists on a current release, such as Fedora Core 4, please open a new bug.


Note You need to log in before you can comment on or make changes to this bug.