LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-16-2017, 12:43 PM   #1
jnojr
Member
 
Registered: Sep 2007
Location: Chandler, AZ
Posts: 227

Rep: Reputation: 20
Question Networking with kickstart


I'm using a bootable ISO and several kickstart files on a web server to configure new systems. We don't have a DHCP server (and that isn't going to change), so I've had to hard-code an IP address on the bootable ISO to connect to the network. I want to change the address of the system being configured as soon as possible, so I used %pre to write a small script that will use ping to find an unused address in a given range and assign that address. Problem is, it looks like anaconda really doesn't like that. I'm not sure if it just gets unhappy about the address changing (the system times out on trying to get includes), or if the fact that I do not have a "network" config in the main body screws things up. What's really odd is I can ssh into the system with the "new" address, and I can ping, resolve names, wget, etc.

Ideally, I'd like to be able to pass an IP from %pre to a "network" config command. I know I can get text files passed from %pre to %post, but that won't help me here. One of the issues I have with changing the IP address in %post is it just doesn't happen cleanly... it doesn't look like the chrooted environment likes having the address messed with, either.
 
Old 06-21-2017, 11:53 AM   #2
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
I did not understand exact your problem, but you can pass anything from %pre scripts using %include directive. A good place for temporary files is /tmp/ .
Code:
%include /tmp/network.conf
..

%pre
echo "network blah blah blah" > /tmp/network.conf
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 5 Cloud, Big Data, and Networking Platforms to Kickstart Your Open Source Career LXer Syndicated Linux News 0 05-31-2016 05:51 PM
RedHat Satellite Kickstart: Passing IP information from Kernel Parameters to Kickstart Config file galron010 Linux - General 1 03-03-2016 12:11 PM
Networking in kickstart jnojr Red Hat 8 05-08-2012 11:49 AM
Networking Kickstart from scratch Pakiman Linux - Networking 1 05-31-2004 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration