nixpkgs/nixos/modules/profiles
Thomas Tuegel 757c7f3773
docker-container: Remove /etc symlink
The system output usually contains a symlink from /etc to the static
configuration for the benefit of the stage-1 script in the initrd. The stage-2
script is usually started in the real root without such a symlink. In a
container, there is no stage-1 and the system output is used directly as a real
root. If the symlink is present, setup-etc.pl will create a symlink cycle and
the system cannot boot. There is no reason for the /etc link to exist in a
container because setup-etc.pl will create the necessary files. The container
module will now remove the /etc symlink and create an empty directory. The empty
/etc is for container managers to populate it with site-specific settings; for
example, to set the hostname. This is required to boot NixOS in an LXC container
on another host.

See also: #9735
2019-11-27 15:51:19 -06:00
..
all-hardware.nix
base.nix Revert "zfs cannot be distributed. Disabling it in the isos." 2018-11-26 17:51:18 -05:00
clone-config.nix ova: add cloneConfigExtra option 2018-10-21 14:52:49 -05:00
demo.nix
docker-container.nix docker-container: Remove /etc symlink 2019-11-27 15:51:19 -06:00
graphical.nix nixos/plasma5: drop enableQt4Support option 2019-11-22 09:01:05 +01:00
hardened.nix nixos/hardened: blacklist old filesystems (#70482) 2019-10-12 10:08:44 +00:00
headless.nix modules/profiles/minimal: sound is disabled by default 2019-01-13 13:47:36 +01:00
installation-device.nix Revert "installer: Disable udisks" 2019-10-16 20:31:24 -04:00
minimal.nix types.optionSet: deprecate and remove last usages 2019-01-31 00:41:10 +02:00
qemu-guest.nix qemu-guest: allow to override security.rngd 2019-09-18 00:35:04 +09:00