Commit dc0119c2 authored by Edward Tomasz Napierala's avatar Edward Tomasz Napierala
Browse files

linsysfs: create /sys/bus/ and /sys/subsystem/

This looks like a no-op, but it prevents udevadm(8) with failing
loudly, which in turn unbreaks installation of libfprint-2-2, which
in Focal is a dependency for make-4.2.1-1.2.

One might wonder why installing a build utility involves messing
with device handling...

Sponsored By:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D29133
parent 968079f2
......@@ -633,6 +633,9 @@ linsysfs_init(PFS_INIT_ARGS)
root = pi->pi_root;
/* /sys/bus/... */
dir = pfs_create_dir(root, "bus", NULL, NULL, NULL, 0);
/* /sys/class/... */
class = pfs_create_dir(root, "class", NULL, NULL, NULL, 0);
scsi = pfs_create_dir(class, "scsi_host", NULL, NULL, NULL, 0);
......@@ -679,6 +682,9 @@ linsysfs_init(PFS_INIT_ARGS)
/* /sys/kernel/debug, mountpoint for lindebugfs. */
debug = pfs_create_dir(kernel, "debug", NULL, NULL, NULL, 0);
/* /sys/subsystem/... */
dir = pfs_create_dir(root, "subsystem", NULL, NULL, NULL, 0);
return (0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment