nixpkgs/nixos/modules/installer/cd-dvd
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
..
channel.nix Rewrite ‘with pkgs.lib’ -> ‘with lib’ 2014-04-14 16:26:48 +02:00
installation-cd-base.nix nixos: Add system-wide option to set the hostid 2014-11-12 22:31:49 +01:00
installation-cd-graphical-new-kernel.nix nixos-iso: Re-enable new kernel iso images (close #2839) 2014-06-17 21:23:52 +02:00
installation-cd-graphical.nix kde installer: Add gparted, nixos manual and konsole in the desktop 2014-10-23 18:59:25 +02:00
installation-cd-minimal-new-kernel.nix nixos-iso: Re-enable new kernel iso images (close #2839) 2014-06-17 21:23:52 +02:00
installation-cd-minimal.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
iso-image.nix Revert "nixos: iso-image: use syslinux bootloader for USB booting support" 2014-11-08 14:33:27 +01:00
system-tarball-fuloong2f.nix jfsrec: Remove derivation 2014-11-02 17:22:27 -08:00
system-tarball-pc-readme.txt Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
system-tarball-pc.nix Get all lib functions from lib, not pkgs.lib, in modules 2014-07-02 12:28:18 -04:00
system-tarball-sheevaplug.nix Remove unrar from the installation CD since it's unfree 2014-09-05 14:25:17 +02:00
system-tarball.nix nixos/manual: Use literalExample when feasible. 2014-08-27 23:41:15 +02:00