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 hammer

ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules

cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << 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.



5 Responses to “Things I Learned while building f19alpha imgs for our openstack cloud”

  1. Gary Scarborough Says:

    I am not sure what you mean in number 2. What is wrong with the initramfs?

  2. rich Says:

    Yeah, syslinux. After adding it to libguestfs and seeing how simple it was to create bootable guests, I just wonder why we aren’t using syslinux everywhere. It’s a bootloader with a sane upstream.

  3. I’m pretty sure there’s a better way to do #1 – I think there’s a config file or kernel parameter for it. Wish I had the details to hand, but I’m sure Kay or Lennart would.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: