3
0
Fork 0
forked from mirrors/nixpkgs

Fix module loading in systemd-udevd

This commit is contained in:
Eelco Dolstra 2014-04-17 12:22:24 +02:00
parent 89155dbc01
commit 518f710547
3 changed files with 12 additions and 1 deletions

View file

@ -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";
};
};
}

View file

@ -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"

View file

@ -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');
};
'';
}