Thank you very much for sharing your findings, now I can stop troubleshooting my script.
Your proposed workaround with sleep 0.1 works.
I'm affected by this bug in UnraidOS that is based on Slackware Linux.
I got "zramctl: /dev/zram0: failed to reset: Device or resource busy" when
modprobe zram
zramctl -f -s 8G -a zstd
was used.
Thank you very much for sharing your findings, now I can stop troubleshooting my script.
Your proposed workaround with sleep 0.1 works.
I'm affected by this bug in UnraidOS that is based on Slackware Linux.
I got "zramctl: /dev/zram0: failed to reset: Device or resource busy" when
modprobe zram
zramctl -f -s 8G -a zstd
was used.