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
This commit is contained in:
parent
968079f253
commit
dc0119c281
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user