feat(profile): zram: move kmod to its own subprofile.

This commit is contained in:
Alexandre Pujol 2025-06-21 19:55:22 +02:00
parent 226cb23073
commit 6735b8e5f8
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -11,16 +11,13 @@ profile zram-generator @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/common/systemd>
capability sys_module,
@{exec_path} mr,
@{bin}/kmod rix,
@{bin}/kmod rCx,
@{bin}/systemd-detect-virt rPx,
@{lib}/systemd/systemd-makefs rPx,
/etc/systemd/zram-generator.conf r,
/etc/modprobe.d/{,**} r,
owner @{run}/systemd/generator/{,*/}var-cache-makepkg.mount rw,
owner @{run}/systemd/generator/dev-zram@{int}.swap rw,
@ -29,12 +26,18 @@ profile zram-generator @{exec_path} flags=(attach_disconnected) {
@{sys}/block/zram@{int}/* rw,
@{sys}/devices/virtual/block/zram@{int}/* rw,
@{sys}/module/compression r,
@{PROC}/crypto r,
owner /dev/pts/@{int} rw,
profile kmod {
include <abstractions/base>
include <abstractions/app/kmod>
include if exists <local/zram-generator_kmod>
}
include if exists <local/zram-generator>
}