1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00
nixpkgs/nixos/modules
Patryk Wychowaniec 336ef2de99
nixos/containers: allow containers with long names to create private networks
Launching a container with a private network requires creating a
dedicated networking interface for it; name of that interface is derived
from the container name itself - e.g. a container named `foo` gets
attached to an interface named `ve-foo`.

An interface name can span up to IFNAMSIZ characters, which means that a
container name must contain at most IFNAMSIZ - 3 - 1 = 11 characters;
it's a limit that we validate using a build-time assertion.

This limit has been upgraded with Linux 5.8, as it allows for an
interface to contain a so-called altname, which can be much longer,
while remaining treated as a first-class citizen.

Since altnames have been supported natively by systemd for a while now,
due diligence on our side ends with dropping the name-assertion on newer
kernels.

This commit closes #38509.

systemd/systemd#14467
systemd/systemd#17220
https://lwn.net/Articles/794289/
2021-02-26 17:48:49 +01:00
..
config Merge pull request #113804 from rnhmjoj/no-udev-settle-2 2021-02-22 23:22:04 +01:00
hardware Merge pull request #111996 from rnhmjoj/i2c 2021-02-06 18:22:34 +01:00
i18n/input-method fcitx5: update doc 2021-01-24 02:10:23 +01:00
installer installer: fixup sd-card folder move from #110827 2021-02-21 16:12:54 -05:00
misc nixos: Get rid of systemConfig kernel parameter 2021-02-18 12:48:08 +01:00
profiles nixos/hidepid: drop the module as the hidepid mount option is broken 2021-02-21 13:51:37 +01:00
programs steam module: add proper steam.run as well 2021-02-22 14:35:45 -03:00
security Merge pull request #111635 from xaverdh/hide-pid-broken 2021-02-23 00:20:29 +01:00
services Merge pull request #106698 from aanderse/nixos/clamav 2021-02-24 22:57:41 -05:00
system Merge pull request #99011 from andersk/plymouth-label 2021-02-21 15:44:54 -05:00
tasks zfs: disable smartmontools mail functionality 2021-02-06 22:04:00 -08:00
testing nixos/service-runner: fix evaluation 2021-02-05 13:02:56 +01:00
virtualisation nixos/containers: allow containers with long names to create private networks 2021-02-26 17:48:49 +01:00
module-list.nix nixos/zrepl: init 2021-02-24 11:56:02 -08:00
rename.nix nixos/hidepid: drop the module as the hidepid mount option is broken 2021-02-21 13:51:37 +01:00