Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2021 15:50:58 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: dc0119c28194 - main - linsysfs: create /sys/bus/ and /sys/subsystem/
Message-ID:  <202103111550.12BFowtT016112@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by trasz:

URL: https://cgit.FreeBSD.org/src/commit/?id=dc0119c28194b537cfa2ad95ce2e62589da7ceb0

commit dc0119c28194b537cfa2ad95ce2e62589da7ceb0
Author:     Edward Tomasz Napierala <trasz@FreeBSD.org>
AuthorDate: 2021-03-08 20:55:44 +0000
Commit:     Edward Tomasz Napierala <trasz@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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103111550.12BFowtT016112>