nixpkgs-custom/nixos/modules/tasks
Graham Christensen f872318e76
networking: Fix timeout when `lo` has aliased IPs
With a config like

    {
      networking.interfaces."lo".ip4 = [
        { address = "10.8.8.8"; prefixLength = 32; }
      ];
    }

a nixos-rebuild switch would take a long time, and you'd see:

    $ systemctl list-jobs
       JOB UNIT                                TYPE  STATE
    734400 network-interfaces.target           start waiting
    734450 sys-subsystem-net-devices-lo.device start running
    734449 network-link-lo.service             start waiting

and:

    systemd[1]: sys-subsystem-net-devices-lo.device: Job sys-subsystem-net-devices-lo.device/star>
    systemd[1]: sys-subsystem-net-devices-lo.device: Job sys-subsystem-net-devices-lo.device/star>
    systemd[1]: Timed out waiting for device sys-subsystem-net-devices-lo.device.

This removes the device dependency for `lo` and fixes this bug.

Closes #7227

(cherry picked from commit 48d292e8a14bec3926dc3963e167859b35fc60af)
2018-07-06 17:17:23 -04:00
..
filesystems nixos/zfs: mount AFTER import 2018-06-16 09:20:57 +02:00
bcache.nix nixos/bcache: add services.udev.packages = [ bcache-tools ] 2017-06-10 17:10:49 +02:00
cpu-freq.nix nixos/cpu-freq: list correct default governor in description 2016-08-28 17:14:37 -05:00
encrypted-devices.nix encrypted devices: provide working example 2017-10-16 17:46:46 +02:00
filesystems.nix filesystems: use non-interactive formatOptions by default 2017-10-12 09:53:43 +07:00
kbd.nix kbd service: systemd-vconsole-setup is triggered by udev 2017-09-27 23:38:29 +02:00
lvm.nix Don't enable LVM2 in containers 2014-04-15 23:43:39 +02:00
network-interfaces-scripted.nix networking.routes: static routes are proto static 2018-05-22 14:34:33 +02:00
network-interfaces-systemd.nix nixos/networking-interfaces: rename IP addresses/routes options 2018-02-17 14:01:24 +01:00
network-interfaces.nix networking: Fix timeout when `lo` has aliased IPs 2018-07-06 17:17:23 -04:00
powertop.nix powertop module: add kmod to path 2017-10-07 21:48:50 +01:00
scsi-link-power-management.nix nixos: set scsi link power policy using udev 2015-10-25 19:38:53 +01:00
swraid.nix sw-raid: rename mdadmShutdown 2016-03-09 21:06:27 +03:00
trackpoint.nix Add Elantech ETPS/2 Trackpoint (ThinkPad Yoga 260) 2017-04-22 13:42:57 +02:00
tty-backgrounds-combine.sh Another attempt to eradicate ensureDir 2014-06-30 14:56:10 +02:00