nixpkgs/nixos/modules
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
..
config update-users-groups.pl: Use UTF-8 instead of latin1. 2014-11-08 19:25:17 +01:00
hardware ati_unfree: Update nixos-manual for AMD driver support 2014-09-07 12:42:32 +10:00
installer nixos: Add system-wide option to set the hostid 2014-11-12 22:31:49 +01:00
misc Add dnscrypt-proxy service 2014-11-11 22:47:19 +01:00
profiles jfsrec: Remove derivation 2014-11-02 17:22:27 -08:00
programs Add "light" package and setuid wrapper 2014-11-09 19:45:43 -07:00
security sudo: allow adding extra configuration options to the bottom of sudoers 2014-11-02 13:27:05 +01:00
services Merge pull request #4950 from joachifm/dnscrypt-proxy 2014-11-13 00:25:05 +03:00
system nixos: Add system-wide option to set the hostid 2014-11-12 22:31:49 +01:00
tasks nixos: Add system-wide option to set the hostid 2014-11-12 22:31:49 +01:00
testing nixos: Fix priorities of initialHashedPassword. 2014-11-04 05:19:07 +01:00
virtualisation Merge pull request #4929 from abbradar/prl-tools 2014-11-13 00:22:42 +03:00
module-list.nix Merge pull request #4950 from joachifm/dnscrypt-proxy 2014-11-13 00:25:05 +03:00
rename.nix Revert "Revert "syslog-ng: Update from 3.5.6 to 3.6.1"" 2014-11-06 21:59:04 +01:00