Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I created a kickstart configuration file using system-config-kickstart utility. The utility doesn't ask me about the "hostname".
When trying to install Redhat linux on a pc using the file I created, it gives me a message "determining hostname and domain".
My questions are: - on what bases the installer tries to determine the hostname and domain providing that no domain server is connected to the network? - can I identify the hostname as part of the installation using kickstart file? and how?
first you need to save your kickstart configuration then open the saved file with your editor (vi emacs ...)and then add
^--hostname WhateverYouWantToCallIt^ to the network line
If I'm using the Kickstart file to auto load several computers I would like kickstart to ask for the host name. I can use 'ask' in autoyast.xml for Opensuse and during the install it will bring up a box for the user to enter the hostname. Is there an option to do so for Fedora?
It's a very old thread but it might help someone.
To ask for hostname with kickstart I put this code in my ks file :
Quote:
%pre
#!/bin/bash
###DEMANDE DU HOSTNAME#########################################
exec < /dev/tty6 > /dev/tty6
chvt 6
clear
echo "################################"
echo "# Une petite question ! #"
echo "################################"
echo -n "Entrer le nom de la machine (hostname): "
read hostn
hostname $hostn
echo -e "NETWORKING=yes\nHOSTNAME=$hostn" > /etc/sysconfig/network
echo "Vous avez choisit $hostn. Appuyer sur entrer pour continuer ou ctrl alt suppr pour redemarrer"
read
###Go back to tty1##
exec < /dev/tty1 > /dev/tty1
chvt 1
################################################################
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.