dev-build/steve: Autoload cuse module to workaround permissions

Add the cuse module to autoloading list to ensure that /dev/cuse is
properly processed by udev before steve is started.  devtmpfs creates
the device node that is only root-accessible, and without root
permissions steve can't access it and trigger loading the module,
so that udev fixes permissions.

Bug: https://bugs.gentoo.org/967033
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-12-17 18:45:18 +01:00
parent d8b7ab56d5
commit d6a3e11e26

View File

@@ -81,6 +81,12 @@ src_install() {
insinto /etc/sandbox.d
newins data/sandbox.conf 90steve
udev_newrules data/steve.udev 90-steve.rules
# TODO: can we manage to get the correct cuse permissions otherwise?
insinto /usr/lib/modules-load.d
newins - steve.conf <<-EOF
cuse
EOF
}
pkg_postinst() {