History log of /systemd/units/kmod-static-nodes.service.in
Revision Date Author Comments Expand
6233c794b2b6eeee178727cfe3729243876e2948 11-Jan-2016 Martin Pitt <martin.pitt@ubuntu.com>

kmod-static-nodes: don't run if module list is empty With this kmod commit, modules.devname will be empty by default instead of containing just a comment: https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/?id=4c30a11d5f Refine the startup condition of kmod-static-nodes.service to not run needlessly if the list is empty.

e0c74691c41a204eba2fd5f39615049fc9ff1648 04-Jul-2014 Lennart Poettering <lennart@poettering.net>

units: conditionalize static device node logic on CAP_SYS_MODULES instead of CAP_MKNOD npsawn containers generally have CAP_MKNOD, since this is required to make PrviateDevices= work. Thus, it's not useful anymore to conditionalize the kmod static device node units. Use CAP_SYS_MODULES instead which is not available for nspawn containers. However, the static device node logic is only done for being able to autoload modules with it, and if we can't do that there's no point in doing it.

a18535d9e138c525d0443ec9f30a90b3e2184686 17-Oct-2013 Tom Gundersen <teg@jklm.no>

static-nodes: don't call mkdir This is no longer necessary with kmod-15. Bump the requirement.

8083d486d0ac8e159b2d1294c8f6be7b11f9cab6 28-Sep-2013 Dave Reisner <dreisner@archlinux.org>

kmod-static-nodes: condition execution on modules.devname

67c15b9a7ac016ac5c9b885756b2eaa7f44a0509 22-Aug-2013 Khem Raj <raj.khem@gmail.com>

use CAP_MKNOD ConditionCapability Fixes errors seen when booting VMs on QEMU like systemd[1]: kmod-static-nodes.service: main process exited, code=exited, status=203/EXEC systemd[1]: Failed to start Create list of required static device nodes for the current kernel. systemd[1]: Unit kmod-static-nodes.service entered failed state. Make sure that mknod capability is available Signed-off-by: Khem Raj <raj.khem@gmail.com>

219061dc524368179b2e65cfe91d4d6b23396ba8 21-Aug-2013 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>

units: disable kmod-static-nodes.service in containers Fixes https://bugzilla.redhat.com/show_bug.cgi?id=998122. Note: upstream kmod has a patch [1] to exit with a warning if modules.devname is missing. We could use new %v specifier to make this service conditional on the existence of this file, but this could mask a kernel installation error, hence we should let kmod run even if the file doesn't exist. [1] http://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/?id=ae17710117

7e380bba1cd517570655c0e653e2239e33988cd1 22-Jul-2013 Tom Gundersen <teg@jklm.no>

kmod-static-nodes: remain after exit

3d56f7df4411684404470d36ddec0d90649a13a3 12-Jul-2013 Tom Gundersen <teg@jklm.no>

static-nodes: don't hardcode path to mkdir

edeb68c53f1cdc452016b4c8512586a70b1262e3 08-Jul-2013 Tom Gundersen <teg@jklm.no>

static-nodes: move creation of static nodes from udevd to tmpfiles As of kmod v14, it is possible to export the static node information from /lib/modules/`uname -r`/modules.devname in tmpfiles.d(5) format. Use this functionality to let systemd-tmpfilesd create the static device nodes at boot, and drop the functionality from systemd-udevd. As an effect of this we can move from systemd-udevd to systemd-tmpfiles-setup-dev: * the conditional CAP_MKNOD (replaced by checking if /sys is mounted rw) * ordering before local-fs-pre.target (see 89d09e1b5c65a2d97840f682e0932c8bb499f166)