Am 09.02.21 um 17:13 schrieb Mike Gilbert:
On Tue, Feb 9, 2021 at 6:17 AM Reindl Harald <h.reindl@xxxxxxxxxxxxx> wrote:
Am 08.02.21 um 23:42 schrieb Mike Gilbert:
On Mon, Feb 8, 2021 at 2:31 PM Reindl Harald <h.reindl@xxxxxxxxxxxxx> wrote:
I think removing this symlink would prevent /sys/fs/fuse/connections
from being mounted and the fuse module from being loaded
unconditionally on boot
no
https://bugzilla.redhat.com/show_bug.cgi?id=1909805#c6
It almost works for me on Gentoo Linux.
To test, I first had to reconfigure my kernel to build FUSE as a
module (I normally have it built-in).
I then removed the sys-fs-fuse-connections.mount symlink from
sysinit.target.wants.
After rebooting with the new kernel, the FUSE module is not loaded and
/sys/fs/fuse/connections is not mounted.
Unfortunately, mounting FUSE-based file systems does not work until I
manually run "modprobe fuse".
It seems that my kernel does not auto-load the module, despite the
static /dev/fuse node. The kernel is probably missing a call to
__request_module().
Given that the kernel doesn't auto-load the module on demand, leaving
the sysinit.target.wants symlink in place seems like the safe thing to
do.
but for sure not on a stripped down machine running a iptables-nft
ruleset, a socket-activated sshd and nohting else
if it's me for server setups the "fuse" kernel-module could be in
"kernel-modules" which is not installed and needed for virtualized guests
the point is that all this setups where happy without fuse loaded from
2008 to 2021 and you can't even avoid it with F33 at all, no matter what
you delete or mask
a active masked unit - seriously? :-)
[root@rawhide ~]# systemctl status sys-module-fuse.device
sys-fs-fuse-connections.mount
● sys-module-fuse.device - /sys/module/fuse
Loaded: masked (Reason: Unit sys-module-fuse.device is masked.)
Active: active (plugged) since Mon 2021-02-08 19:33:18 CET; 1min
42s ago
Device: /sys/module/fuse
I think something else on your system is loading the fuse kernel
module, which activates sys-module-fuse.device, and tries to start
sys-fs-fuse-connections.mount. It appears systemd doesn't really
support masking device units, which are generated by udev events.
You should probably try to track down exactly what else is loading the
fuse module, and disable that.
this is a bare setup with *nothing* enabled at all
[root@rawhide ~]# pstree
systemd─┬─agetty
├─dbus-broker-lau───dbus-broker
├─haveged
├─rsyslogd───2*[{rsyslogd}]
├─sshd───sshd───bash───pstree
├─systemd───(sd-pam)
├─systemd-journal
├─systemd-logind
├─systemd-udevd
└─vmtoolsd───2*[{vmtoolsd}]
[root@rawhide ~]# systemd-analyze
Startup finished in 942ms (kernel) + 1.519s (initrd) + 1.725s
(userspace) = 4.187s
multi-user.target reached after 1.692s in userspace
[root@rawhide ~]# systemd-analyze blame
376ms systemd-udev-trigger.service
309ms initrd-switch-root.service
234ms systemd-logind.service
181ms initrd-parse-etc.service
178ms network-up.service
151ms systemd-journald.service
120ms dracut-cmdline.service
118ms systemd-udevd.service
117ms systemd-vconsole-setup.service
107ms user@0.service
89ms rsyslog.service
66ms dbus-broker.service
57ms sys-kernel-tracing.mount
57ms dev-mqueue.mount
56ms sys-kernel-debug.mount
55ms dev-hugepages.mount
55ms tmp.mount
54ms kmod-static-nodes.service
46ms modprobe@drm.service
43ms systemd-sysctl.service
40ms var-lib-dnf.mount
39ms var-cache-yum.mount
39ms systemd-modules-load.service
36ms initrd-cleanup.service
36ms systemd-remount-fs.service
36ms systemd-tmpfiles-setup.service
34ms systemd-random-seed.service
33ms sys-kernel-config.mount
32ms systemd-tmpfiles-setup-dev.service
30ms systemd-fsck-root.service
30ms systemd-user-sessions.service
29ms var-log.mount
24ms systemd-update-utmp.service
23ms var-tmp.mount
23ms systemd-update-utmp-runlevel.service
22ms systemd-journal-flush.service
14ms user-runtime-dir@0.service
11ms initrd-udevadm-cleanup-db.service
9ms dracut-shutdown.service
8ms sysroot.mount
4ms modprobe@configfs.service
[root@rawhide ~]# systemctl -list-units
Failed to parse signal string t-units.
[root@rawhide ~]# systemctl list-units
UNIT
LOAD ACTIVE SUB DESCRIPTION
boot.automount
loaded active waiting boot.automount
efi.automount
loaded active waiting efi.automount
sys-devices-pci0000:00-0000:00:15.0-0000:03:00.0-net-lan.device
loaded active plugged VMXNET3 Ethernet
Controller
sys-devices-pci0000:00-0000:00:17.0-0000:13:00.0-host2-target2:0:0-2:0:0:0-block-sda-sda1.device
loaded active plugged VMware_Virtual_S EFI\x20system\x20partition
sys-devices-pci0000:00-0000:00:17.0-0000:13:00.0-host2-target2:0:0-2:0:0:0-block-sda-sda2.device
loaded active plugged VMware_Virtual_S BIOS\x20boot\x20partition
sys-devices-pci0000:00-0000:00:17.0-0000:13:00.0-host2-target2:0:0-2:0:0:0-block-sda-sda3.device
loaded active plugged VMware_Virtual_S boot
sys-devices-pci0000:00-0000:00:17.0-0000:13:00.0-host2-target2:0:0-2:0:0:0-block-sda.device
loaded active plugged VMware_Virtual_S
sys-devices-pci0000:00-0000:00:17.0-0000:13:00.0-host2-target2:0:1-2:0:1:0-block-sdb-sdb1.device
loaded active plugged VMware_Virtual_S system
sys-devices-pci0000:00-0000:00:17.0-0000:13:00.0-host2-target2:0:1-2:0:1:0-block-sdb-sdb2.device
loaded active plugged VMware_Virtual_S 2
sys-devices-pci0000:00-0000:00:17.0-0000:13:00.0-host2-target2:0:1-2:0:1:0-block-sdb.device
loaded active plugged VMware_Virtual_S
sys-devices-platform-serial8250-tty-ttyS0.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS0
sys-devices-platform-serial8250-tty-ttyS1.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS10.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS10
sys-devices-platform-serial8250-tty-ttyS11.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS11
sys-devices-platform-serial8250-tty-ttyS12.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS12
sys-devices-platform-serial8250-tty-ttyS13.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS13
sys-devices-platform-serial8250-tty-ttyS14.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS14
sys-devices-platform-serial8250-tty-ttyS15.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS15
sys-devices-platform-serial8250-tty-ttyS16.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS16
sys-devices-platform-serial8250-tty-ttyS17.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS17
sys-devices-platform-serial8250-tty-ttyS18.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS18
sys-devices-platform-serial8250-tty-ttyS19.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS19
sys-devices-platform-serial8250-tty-ttyS2.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS20.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS20
sys-devices-platform-serial8250-tty-ttyS21.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS21
sys-devices-platform-serial8250-tty-ttyS22.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS22
sys-devices-platform-serial8250-tty-ttyS23.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS23
sys-devices-platform-serial8250-tty-ttyS24.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS24
sys-devices-platform-serial8250-tty-ttyS25.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS25
sys-devices-platform-serial8250-tty-ttyS26.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS26
sys-devices-platform-serial8250-tty-ttyS27.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS27
sys-devices-platform-serial8250-tty-ttyS28.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS28
sys-devices-platform-serial8250-tty-ttyS29.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS29
sys-devices-platform-serial8250-tty-ttyS3.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS3
sys-devices-platform-serial8250-tty-ttyS30.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS30
sys-devices-platform-serial8250-tty-ttyS31.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS31
sys-devices-platform-serial8250-tty-ttyS4.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS4
sys-devices-platform-serial8250-tty-ttyS5.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS5
sys-devices-platform-serial8250-tty-ttyS6.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS6
sys-devices-platform-serial8250-tty-ttyS7.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS7
sys-devices-platform-serial8250-tty-ttyS8.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS8
sys-devices-platform-serial8250-tty-ttyS9.device
loaded active plugged
/sys/devices/platform/serial8250/tty/ttyS9
sys-devices-virtual-mem-random.device
loaded active plugged
/sys/devices/virtual/mem/random
sys-module-configfs.device
loaded active plugged
/sys/module/configfs
sys-module-fuse.device
loaded active plugged /sys/module/fuse
sys-subsystem-net-devices-lan.device
loaded active plugged VMXNET3 Ethernet
Controller
-.mount
loaded active mounted Root Mount
dev-hugepages.mount
loaded active mounted Huge Pages File
System
dev-mqueue.mount
loaded active mounted POSIX Message Queue
File System
run-user-0.mount
loaded active mounted /run/user/0
sys-kernel-config.mount
loaded active mounted Kernel
Configuration File System
sys-kernel-debug.mount
loaded active mounted Kernel Debug File
System
sys-kernel-tracing.mount
loaded active mounted Kernel Trace File
System
tmp.mount
loaded active mounted Temporary Directory
(/tmp)
var-cache-yum.mount
loaded active mounted /var/cache/yum
var-lib-dnf.mount
loaded active mounted /var/lib/dnf
var-log.mount
loaded active mounted /var/log
var-tmp.mount
loaded active mounted /var/tmp
systemd-ask-password-console.path
loaded active waiting Dispatch Password
Requests to Console Directory Watch
systemd-ask-password-wall.path
loaded active waiting Forward Password
Requests to Wall Directory Watch
init.scope
loaded active running System and Service
Manager
session-1.scope
loaded active running Session 1 of user
root
dbus-broker.service
loaded active running D-Bus System
Message Bus
dracut-shutdown.service
loaded active exited Restore
/run/initramfs on shutdown
getty@tty1.service
loaded active running Getty on tty1
haveged.service
loaded active running Entropy Daemon
kmod-static-nodes.service
loaded active exited Create list of
static device nodes for the current kernel
network-up.service
loaded active exited Network
rsyslog.service
loaded active running Syslog Service
sshd@0-192.168.196.18:22-192.168.196.2:54732.service
loaded active running OpenSSH
per-connection server daemon (192.168.196.2:54732)
systemd-fsck-root.service
loaded active exited File System Check
on Root Device
systemd-journal-flush.service
loaded active exited Flush Journal to
Persistent Storage
systemd-journald.service
loaded active running Journal Service
systemd-logind.service
loaded active running User Login
Management
systemd-modules-load.service
loaded active exited Load Kernel Modules
systemd-random-seed.service
loaded active exited Load/Save Random
Seed
systemd-remount-fs.service
loaded active exited Remount Root and
Kernel File Systems
systemd-sysctl.service
loaded active exited Apply Kernel
Variables
systemd-tmpfiles-setup-dev.service
loaded active exited Create Static
Device Nodes in /dev
systemd-tmpfiles-setup.service
loaded active exited Create Volatile
Files and Directories
systemd-udev-trigger.service
loaded active exited Coldplug All udev
Devices
systemd-udevd.service
loaded active running Rule-based Manager
for Device Events and Files
systemd-update-utmp.service
loaded active exited Update UTMP about
System Boot/Shutdown
systemd-user-sessions.service
loaded active exited Permit User
Sessions
user-runtime-dir@0.service
loaded active exited User Runtime
Directory /run/user/0
user@0.service
loaded active running User Manager for
UID 0
vmtoolsd.service
loaded active running VMware Tools
-.slice
loaded active active Root Slice
system-getty.slice
loaded active active system-getty.slice
system-modprobe.slice
loaded active active
system-modprobe.slice
system-sshd.slice
loaded active active system-sshd.slice
system.slice
loaded active active System Slice
user-0.slice
loaded active active User Slice of UID 0
user.slice
loaded active active User and Session
Slice
dbus.socket
loaded active running D-Bus System
Message Bus Socket
sshd.socket
loaded active listening OpenSSH Server
Socket
syslog.socket
loaded active running Syslog Socket
systemd-coredump.socket
loaded active listening Process Core Dump
Socket
systemd-initctl.socket
loaded active listening initctl
Compatibility Named Pipe
systemd-journald-dev-log.socket
loaded active running Journal Socket
(/dev/log)
systemd-journald.socket
loaded active running Journal Socket
systemd-udevd-control.socket
loaded active running udev Control Socket
systemd-udevd-kernel.socket
loaded active running udev Kernel Socket
basic.target
loaded active active Basic System
cryptsetup.target
loaded active active Local Encrypted
Volumes
getty.target
loaded active active Login Prompts
local-fs-pre.target
loaded active active Local File Systems
(Pre)
local-fs.target
loaded active active Local File Systems
multi-user.target
loaded active active Multi-User System
network-online.target
loaded active active Network is Online
paths.target
loaded active active Paths
slices.target
loaded active active Slices
sockets.target
loaded active active Sockets
swap.target
loaded active active Swap
sysinit.target
loaded active active System
Initialization
timers.target
loaded active active Timers
mlocate-updatedb.timer
loaded active waiting Updates mlocate
database every day
systemd-tmpfiles-clean.timer
loaded active waiting Daily Cleanup of
Temporary Directories
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel