Fedora 22 dracut route set and net installation restart

asked 2015-07-09 09:57:52 -0500

bbmrp gravatar image

Hello everyone, I have a hosted server which gets its IP information via DHCP upon boot. It's a publicly-addressable IP (/32), but its default route is to a 10-space IP.

I'd like to rebuild the host with Fedora 22 via a network installation. I currently have CentOS 6 installed, and have pulled down the Fedora 22 Server ISO to the host and copied over the isolinux/vmlinuz and isolinux/initrd.img files to /boot and modified grub.conf to point to each:

title Fedora22
    root (hd0,0)
    kernel /vmlinuz.f22 console=ttyS0,57600 inst.vnc inst.vncpassword=X inst.askmethod inst.repo=http://mirrors.mit.edu/fedora/linux/releases/22/Server/x86_64/os rd.route=10.255.255.1/24::enp2s0
    initrd /initrd.f22

The problem arises when the host starts - it will successfully attempt to pull the repo information down, but fails since the default route is not available. The installation will drop me to the dracut emergency shell, where I can see that the DHCP address has been bound to the interface (enp2s0), yet the route information has not. If I manually set the route (ip route add 10.255.255.1 dev enp2s0 ; ip route add default via 10.255.255.1) I can then resolve DNS and ping outbound.

How do I either get dracut to honor the non-local route (the rd.route option doesn't seem to help) or restart the install from within the dracut emergency shell?

Thanks in advance for your help.

edit retag flag offensive close merge delete