git: dc0119c28194 - main - linsysfs: create /sys/bus/ and /sys/subsystem/
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Mar 11 15:50:59 UTC 2021
The branch main has been updated by trasz:
URL: https://cgit.FreeBSD.org/src/commit/?id=dc0119c28194b537cfa2ad95ce2e62589da7ceb0
commit dc0119c28194b537cfa2ad95ce2e62589da7ceb0
Author: Edward Tomasz Napierala <trasz at FreeBSD.org>
AuthorDate: 2021-03-08 20:55:44 +0000
Commit: Edward Tomasz Napierala <trasz at FreeBSD.org>
CommitDate: 2021-03-11 15:50:51 +0000
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
---
sys/compat/linsysfs/linsysfs.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sys/compat/linsysfs/linsysfs.c b/sys/compat/linsysfs/linsysfs.c
index 66cb36db9868..8d3be1507de9 100644
--- a/sys/compat/linsysfs/linsysfs.c
+++ b/sys/compat/linsysfs/linsysfs.c
@@ -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);
}
More information about the dev-commits-src-main
mailing list