After enabling the service and rebooting (using the default configuration), I get bunch of Error statting /zram0: No such file or directory coming from udiskd at random intervals for about a minute after booting:
mai 30 19:04:56 terence-desktop systemd[1]: Starting Automatically setup swap on zram...
mai 30 19:04:56 terence-desktop kernel: zram: Added device: zram0
mai 30 19:04:56 terence-desktop systemd[1]: Created slice system-udisks2\x2dzram\x2dsetup.slice.
mai 30 19:04:56 terence-desktop systemd[1]: Starting UDisks2 managed ZRAM device zram0 setup...
mai 30 19:04:56 terence-desktop kernel: zram0: detected capacity change from 0 to 16777216
mai 30 19:04:56 terence-desktop systemd[1]: udisks2-zram-setup@zram0.service: Deactivated successfully.
mai 30 19:04:56 terence-desktop systemd[1]: Finished UDisks2 managed ZRAM device zram0 setup.
mai 30 19:04:56 terence-desktop kernel: Adding 8388604k swap on /dev/zram0. Priority:100 extents:1 across:8388604k SSFS
mai 30 19:04:56 terence-desktop systemd[1]: Finished Automatically setup swap on zram.
mai 30 19:04:56 terence-desktop udisksd[623]: Error statting /zram0: No such file or directory
mai 30 19:04:56 terence-desktop udisksd[623]: Error statting /zram0: No such file or directory
mai 30 19:05:04 terence-desktop udisksd[623]: Error statting /zram0: No such file or directory
mai 30 19:05:07 terence-desktop udisksd[623]: Error statting /zram0: No such file or directory
mai 30 19:05:07 terence-desktop udisksd[623]: Error statting /zram0: No such file or directory
mai 30 19:05:08 terence-desktop udisksd[623]: Error statting /zram0: No such file or directory
mai 30 19:05:20 terence-desktop udisksd[623]: Error statting /zram0: No such file or directory
I still seem to get a functioning zram swap:
total used free shared buff/cache available
Mem: 15Gi 2,7Gi 8,3Gi 194Mi 4,6Gi 11Gi
Swap: 8,0Gi 0B 8,0Gi
Since the message is coming from udisks2, should an issue be opened there or is there something zramd might do incorrectly?
Thank you for the report, the issue was happening because swapon was being executed inside a systemd sandbox which prevented the udev from getting the real path of the zram device
After enabling the service and rebooting (using the default configuration), I get bunch of
Error statting /zram0: No such file or directory
coming from udiskd at random intervals for about a minute after booting:I still seem to get a functioning zram swap:
Since the message is coming from udisks2, should an issue be opened there or is there something zramd might do incorrectly?