StatelessLinux/PrepareImage

From FedoraProject

Jump to: navigation, search

Stateless Linux - Preparing An Image

See Stateless Linux HOWTO

Once you have prepared a base image, you need to modify it so that it can be used by stateless clients.

One thing to bear in mind is that the same image should be usable on a client using NFS root, NFS loop root, cached root or, indeed, by a standalone system or a Xen guest.

The basic things you must do are:

$> echo "READONLY=yes" > /etc/sysconfig/readonly-root

This ensures that the init scripts do not remount the root filesystem read-write and various directories (see /etc/rwtab) are made writable using tmpfs mounts.

$> echo "RUN_FIRSTBOOT=no" > nfs/etc/sysconfig/firstboot

You should also:

$> cat > /etc/sysconfig/networking-scripts/ifcfg-eth0 << EOF
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
EOF

FIXME: details

FIXME: this seems bogus; we should be able to survive this

FIXME: why? what does this fix?

FIXME: what leaves all these lying around? Can we fix them to not be left around?

Notes: