Can't start zramswap.service on OpenSUSE Leap 15.4
Hello there. I just make a fresh new Leap 15.4 installation and installed `systemd-zram-service` on it. I believe it should work just like before but when I run `systemctl enable --now zramswap.service`, I got this instead. Jul 15 02:03:44 sea00 systemd[1]: Starting Service enabling compressing RAM with zRam... ░░ Subject: A start job for unit zramswap.service has begun execution ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ A start job for unit zramswap.service has begun execution. ░░ ░░ The job identifier is 1072. Jul 15 02:03:44 sea00 zramswapon[14055]: modinfo: ERROR: Module alias zram not found. Jul 15 02:03:44 sea00 zramswapon[14059]: modprobe: FATAL: Module zram not found in directory /lib/modules/5.14.21-150400.22-default Jul 15 02:03:44 sea00 zramswapon[14049]: /usr/sbin/zramswapon: line 23: /sys/block/zram0/disksize: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14049]: /usr/sbin/zramswapon: line 23: /sys/block/zram1/disksize: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14049]: /usr/sbin/zramswapon: line 23: /sys/block/zram2/disksize: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14049]: /usr/sbin/zramswapon: line 23: /sys/block/zram3/disksize: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14062]: mkswap: cannot open /dev/zram0: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14063]: mkswap: cannot open /dev/zram1: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14064]: mkswap: cannot open /dev/zram2: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14065]: mkswap: cannot open /dev/zram3: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14067]: swapon: cannot open /dev/zram0: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14068]: swapon: cannot open /dev/zram1: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14069]: swapon: cannot open /dev/zram2: No such file or directory Jul 15 02:03:44 sea00 zramswapon[14070]: swapon: cannot open /dev/zram3: No such file or directory Jul 15 02:03:44 sea00 systemd[1]: zramswap.service: Main process exited, code=exited, status=255/EXCEPTION ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ An ExecStart= process belonging to unit zramswap.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 255. Jul 15 02:03:44 sea00 systemd[1]: zramswap.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ The unit zramswap.service has entered the 'failed' state with result 'exit-code'. Jul 15 02:03:44 sea00 systemd[1]: Failed to start Service enabling compressing RAM with zRam. ░░ Subject: A start job for unit zramswap.service has failed ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ A start job for unit zramswap.service has finished with a failure. ░░ ░░ The job identifier is 1072 and the job result is failed. The same package and the same systemd file works on my TW laptop though, and I can `modprobe zram` by hand. Could anyone help me with that? Thank you. Regrads, Orville Q. Song
On 15.07.2022 05:13, Orville Q. Song wrote:
Hello there.
I just make a fresh new Leap 15.4 installation and installed `systemd-zram-service` on it. I believe it should work just like before but when I run `systemctl enable --now zramswap.service`, I got this instead.
Jul 15 02:03:44 sea00 systemd[1]: Starting Service enabling compressing RAM with zRam... ░░ Subject: A start job for unit zramswap.service has begun execution ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ A start job for unit zramswap.service has begun execution. ░░ ░░ The job identifier is 1072. Jul 15 02:03:44 sea00 zramswapon[14055]: modinfo: ERROR: Module alias zram not found. Jul 15 02:03:44 sea00 zramswapon[14059]: modprobe: FATAL: Module zram not found in directory /lib/modules/5.14.21-150400.22-default ...
The same package and the same systemd file works on my TW laptop though, and I can `modprobe zram` by hand.
Open bug report for Leap 15.4, refer to https://bugzilla.opensuse.org/show_bug.cgi?id=1193402 Service hardening was dropped in Tumbleweed.
participants (2)
-
Andrei Borzenkov
-
Orville Q. Song