-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Erling Ringen Elvsrud wrote: > Do you know if there is a way to fetch the tcp/ip config from stage 1 > in stage 2 to avoid > repeating the configuration? like in %prescript? Hi Erling, Absolutely, and you're on the right track. You can %include a file generated with a %pre script in your kickstart. Simply have a pre script that generates a file containing the network line (network --device ethx --bootproto static [--noipv6] --ip x.x.x.x --netmask x.x.x.x --gateway x.x.x.x --nameserver x.x.x.x[,x.x.x.x] [--hostname %s]) then use a %include statement to add the contents of the file to the kickstart. You may be able to simply parse the contents of /tmp/netinfo or the output of ifconfig, or you may need to resort to python (isys.getIPAddress). Incidentally, you could also avoid having to enter the info for stage 1 by passing it as command line parameters (ip=, netmask=, etc...). If you do this you could parse /proc/cmdline for the info. - -- Kyle Powell | Red Hat | Senior Consultant, RHCE -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFKcHBq7pTtanQdBU4RAgRHAJoDG0aWogdd+slNWxxNyezHy7+7DwCfWlM0 /i3qKr+wLmpLZBZ2V5/H6sI= =owwX -----END PGP SIGNATURE----- _______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list