Merge pull request #3367 from flatcar/danzatt/fix-modprobe-via-udevd

sys-apps/systemd: allow @mount syscalls for systemd-udevd.service
This commit is contained in:
Daniel 2025-11-05 18:17:20 +01:00 committed by GitHub
commit 2aaa758cc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 0 deletions

View File

@ -11,3 +11,16 @@ After=ensure-sysext.service
EOF
popd
}
cros_post_src_install_udev() {
insinto "$(systemd_get_systemunitdir)/systemd-udevd.service.d"
newins - flatcar.conf <<EOF
# In Flatcar we are using modprobe helpers that run depmod in temporary
# overlay. systemd-udevd.service may try to load drivers for some block devices
# (e.g. ZFS), which ends up calling our helpers, which invoke mount command.
# The mount syscalls are forbidden by the default systemd-udevd syscall filter.
[Service]
SystemCallFilter=@mount
EOF
}