Bug 186560

Summary: Specifying hostname on commandline
Product: [Fedora] Fedora Reporter: Dag Wieers <dag>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-04 19:24:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dag Wieers 2006-03-24 13:19:04 UTC
Description of problem:
We would like to specify the hostname on the commandline (much like ip= netmask=
gw= dns=). In our case the security guidelines do not allow DNS (or DHCP) and
the only way to kickstart installations is using a virtual floppy/cdrom and HTTP
access.

For a bunch of identical servers it helps to not have to duplicate the kickstart
file. The only reason we are doing that now is because the hostname cannot be
specified in the isolinux.cfg because anaconda does not support it.

Here is an example of an isolinux.cfg that we use:

  prompt 1
  kbdmap be.ktl
  serial 0 115200
  timeout 600
  display ecboot.msg
  F1 ecboot.msg
  ### FIXME: Prefer to have the global options defined here
  #append initrd=initrd.img text kssendmac ksdevice=eth1 serial 
console=ttyS0,115200 console=tty dns=127.0.0.1 ks=http://10.50.33.171/footprint/
  default localboot

  label localboot
        localboot 0x80

  label system4
        kernel vmlinuz
        append initrd=initrd.img text ksdevice=eth1 ip=1.2.3.4
netmask=255.255.255.192 gateway=1.2.3.1 ks=http://1.2.3.2/footprint/

  label system5
        kernel vmlinuz
        append initrd=initrd.img text ksdevice=eth1 ip=1.2.3.5
netmask=255.255.255.192 gateway=1.2.3.1 ks=http://1.2.3.2/footprint/

...


This allows us to create a single bootable image that could install our 30
servers based on 4 different kickstart files. If we can specify the hostname on
the commandline, we only need to symlink the correct (profile) kickstart file to
the 1.2.3.4-kickstart location in the DocumentRoot of the webserver. And instead
of 30 almost identical kickstart files we could reduce it to 4.

This applies to EL4 as well.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1..
2..
3..
  
Actual results:


Expected results:


Additional info:

Comment 1 David Cantrell 2007-04-03 19:54:29 UTC
I can address this bug in Fedora.  If you need it addressed in a RHEL update
release, please contact your TAM.

Comment 2 David Cantrell 2007-09-04 19:24:15 UTC
Fixed in rawhide.  You can pass hostname=[hostname] at the cmdline and anaconda
will use that to set the hostname.