Fix module loading in systemd-udevd

wip/yesman
Eelco Dolstra 10 years ago
parent 89155dbc01
commit 518f710547
  1. 5
      nixos/modules/services/hardware/udev.nix
  2. 2
      nixos/modules/system/boot/systemd.nix
  3. 6
      nixos/tests/misc.nix

@ -243,5 +243,10 @@ in
fi
'';
systemd.services.systemd-udevd =
{ baseUnit = "${config.systemd.package}/example/systemd/system/systemd-udevd.service";
environment.MODULE_DIR = "/run/booted-system/kernel-modules/lib/modules";
};
};
}

@ -50,7 +50,7 @@ let
# Udev.
"systemd-udevd-control.socket"
"systemd-udevd-kernel.socket"
"systemd-udevd.service"
#"systemd-udevd.service"
"systemd-udev-settle.service"
"systemd-udev-trigger.service"

@ -63,6 +63,12 @@ import ./make-test.nix {
$machine->succeed('[ "`hostname`" = machine ]');
$machine->succeed('[ "`hostname -s`" = machine ]');
};
# Test whether systemd-udevd automatically loads modules for our hardware.
subtest "udev-auto-load", sub {
$machine->waitForUnit('systemd-udev-settle.service');
$machine->succeed('lsmod | grep psmouse');
};
'';
}

Loading…
Cancel
Save