systemd / zram-generator

Systemd unit generator for zram devices
MIT License
575 stars 48 forks source link

Mount with specific owner #150

Closed BigmenPixel0 closed 2 years ago

BigmenPixel0 commented 2 years ago

Can I mount /var/cache/my_folder with specific uid and gid?

[zram5]
zram-size = ram
compression-algorithm = zstd
options = nosuid,nodev
fs-type = ext4
mount-point = /var/cache/my_folder
nabijaczleweli commented 2 years ago

The hack described in the README https://github.com/systemd/zram-generator#mount-points applies, just do chown instead of/in addition to chmod (I think that's what you're asking, per analogiam w/tmpfs).

Closing as duplicate of #146. I should really polish the half of a systemd patch I have for this.