mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-23 10:12:12 +01:00
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:
commit
2aaa758cc9
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user