nixpkgs/nixos
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
..
doc rl-2003: Fix typo 2019-11-26 17:04:59 +01:00
lib Merge pull request #73966 from d-goldin/nixosoptions_xml_strctx 2019-11-25 13:20:00 +01:00
maintainers ec2/create-amis.sh: register root device as /dev/xvda 2019-11-02 05:58:58 +09:00
modules docker-container: Remove /etc symlink 2019-11-27 15:51:19 -06:00
tests nixos/ndppd: port test to python test-driver 2019-11-27 20:22:16 +01:00
COPYING
default.nix
README
release-combined.nix nixos/containers-ip: Test both ipv4 and ipv6 in the same script 2019-11-27 09:13:02 +01:00
release-small.nix nixos/containers-ip: Test both ipv4 and ipv6 in the same script 2019-11-27 09:13:02 +01:00
release.nix Merge pull request #68265 from tkerber/rpi4 2019-09-27 14:35:17 -04:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.