Synchronize initramfs and system hostid
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Sep 2011 17:33:26 +0000 (10:33 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Sep 2011 20:31:00 +0000 (13:31 -0700)
commite8753fb4f03aaa371028aaec145449f2610229cf
tree5fb7cee167d79a3bc494125b3204d49b89868dde
parent6ebd8ef103c3ed4739987f36d77874f6953af89f
Synchronize initramfs and system hostid

Relying on an /etc/hostid file which is installed in the system
image breaks diskless systems which share an image.  Certain
cluster infrastructure such as MPI relies on all nodes having
a unique hostid.  However, we still must be careful to ensure
the hostid is syncronized between the initramfs and system
images when using zfs root filesystems.

To accompish this the automatically created /etc/hostid file has
been removed from the spl rpm packaging.  The /etc/hostid file
is now dynamically created for your initramfs as part of the
dracut install process.  This avoids the need to install it in
the actual system images.

This change also resolves the spl_hostid parameter handling
for dracut.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #398
Closes #399

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
dracut/90zfs/module-setup.sh.in
dracut/90zfs/parse-zfs.sh.in