nixpkgs/pkgs
Ricardo M. Correia e9affb4274 nixos: Add system-wide option to set the hostid
The old boot.spl.hostid option was not working correctly due to an
upstream bug.

Instead, now we will create the /etc/hostid file so that all applications
(including the ZFS kernel modules, ZFS user-space applications and other
unrelated programs) pick-up the same system-wide host id. Note that glibc
(and by extension, the `hostid` program) also respect the host id configured in
/etc/hostid, if it exists.

The hostid option is now mandatory when using ZFS because otherwise, ZFS will
require you to force-import your ZFS pools if you want to use them, which is
undesirable because it disables some of the checks that ZFS does to make sure it
is safe to import a ZFS pool.

The /etc/hostid file must also exist when booting the initrd, before the SPL
kernel module is loaded, so that ZFS picks up the hostid correctly.

The complexity in creating the /etc/hostid file is due to having to
write the host ID as a 32-bit binary value, taking into account the
endianness of the machine, while using only shell commands and/or simple
utilities (to avoid exploding the size of the initrd).
2014-11-12 22:31:49 +01:00
..
applications flashplayer: Update from 11.2.202.411 -> 11.2.202.418 2014-11-12 22:31:14 +01:00
build-support
data Fixed many descriptions 2014-11-11 14:36:34 +01:00
desktops Fixed many descriptions 2014-11-11 14:36:34 +01:00
development coqPackages.unimath: new expression 2014-11-12 14:37:25 -06:00
games pkgs: add xsnow 2014-11-12 17:52:21 +01:00
misc fix travis eval and remove duplicate 2014-11-13 00:18:47 +03:00
os-specific nixos/zfs: Improve the ZFS boot process 2014-11-12 22:31:49 +01:00
servers bird: bump 2014-11-11 14:27:21 -05:00
shells
stdenv nixos: Add system-wide option to set the hostid 2014-11-12 22:31:49 +01:00
test
tools Merge pull request #4950 from joachifm/dnscrypt-proxy 2014-11-13 00:25:05 +03:00
top-level Merge pull request #4950 from joachifm/dnscrypt-proxy 2014-11-13 00:25:05 +03:00