On Tue, 2014-10-14 at 19:21 +0800, 耳东 wrote: > hi guys, I have make a customed livecd with 'livecd-creator'. > in the livecd root file system, there was no network config like: > > /etc/sysconfig/network-scripts/ifcfg-eth* > > because pxe network device of servers were possible 'eth0' or 'eth1' > according to the linked cable. > how could I get the pxe boot network device like anaconda's > 'ksdevice=bootif' option. > So I could get dhcp IP with 'dhclient <bootif_device>' in my init > script. Hi, you need to add the 'ipappend 2' line to your PXE boot configuration after the 'append ...' line. That will result in a 'BOOTIF MAC-ADDR-OF-BOOT-NIC' boot option added which can then be read from the /proc/cmdline file and processed. You'll then need to match the MAC address with to some NIC. Hope that helps, -- Vratislav Podzimek Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list