forked from mirrors/nixpkgs
Fix module loading in systemd-udevd
This commit is contained in:
parent
89155dbc01
commit
518f710547
|
@ -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…
Reference in a new issue