Things I Learned while building f19alpha imgs for our openstack cloud
April 27, 2013
Things I learned today:
1. the predictable network device naming stuff in systemd is kinda arbitrary when it comes to cloud imgs that may run on a variety of virt systems – so to turn it off just add this to your %post in your kickstart:
# disable systemd ‘predictable’ device names for networks w/a hammerln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF DEVICE="eth0" BOOTPROTO="dhcp" ONBOOT="yes" TYPE="Ethernet" EOF
That last bit is just to make a generic ifcfg-eth0 so ifup eth0 works normally. 2. the hostonly initramfs that dracut makes now plays up when you are moving an image around. make sure you add
to %packages to get it to behave as you’d expect
3. if you don’t have a lot of memory then you may not want tmpfs for /tmp – to turn that off just do:
systemctl mask tmp.mount
in %post and it will be as you’d expect.
4. syslinux-extlinux is WAY nicer and simpler to use than grub2 :)
Thanks to Mattdm for making the syslinux-extlinux option for anaconda happen.