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've cerated a custom installation CD with a kickstart file that fits my needs. Almost.
I need to define the IP address, and I realize that kickstart does not offer this functionality. I tried to add this to my /etc/rc3.d/S99local file:
echo " The system is currently set for DHCP."
echo " Do you want to change this? [y/n] (enter=n)"
echo ""
read REPLY
if [ -z $REPLY ]; then REPLY="n"; fi
if [ $REPLY = "y" ]; then
/usr/bin/system-config-network
fi
if [ $REPLY = "n" ]; then
echo "Alright, leaving DHCP enabled."
fi
But that didn't work - I'm assuming because I can't interact with the user at this point in the runlevel. Is there ANY workaround for this, without having to define the IP in the kickstart or in the install options? I'd like to be able to change the IP sometime up to the first boot, as the machine will then download some packages from the Internet (and a DHCP server is unavailable)
Thanks in advance for any advice!
I tried to pipe system-config-network into TTY3 during the kickstart phase, but that produced bad screen results and died as well. Here's what I tried:
exec < /dev/tty3 > /dev/tty3
echo " The system is currently set for DHCP."
echo " Do you want to change this? [y/n] (enter=n)"
echo ""
read REPLY
if [ -z $REPLY ]; then REPLY="n"; fi
if [ $REPLY = "y" ]; then
/usr/bin/system-config-network
system-config-network
fi
if [ $REPLY = "n" ]; then
echo "Alright, leaving DHCP enabled."
fi
I also tried to pipe that out to TTY1 and that was even worse.... What does anyone think of fooling kudzu into thinking the network card hasn't been set up yet? Anyone know how to do this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.