Bug#911748: zram-tools: Stopping zramswap service doesn't remove swaps

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#911748: zram-tools: Stopping zramswap service doesn't remove swaps

Julian Calaby
Package: zram-tools
Version: 0.3.2-1
Severity: minor

Dear Maintainer,

The systemd unit used to start zramswap on boot doesn't clean up the zram swap
partitions when stopped.

zramswap isn't prepared for the partitions it creates to already exist when it
starts so it prduces errors when stopped and started through service or
systemctl.

Thanks,

Julian Calaby

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zram-tools depends on:
ii  bc  1.07.1-2+b1

zram-tools recommends no packages.

zram-tools suggests no packages.

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#911748: zram-tools: Stopping zramswap service doesn't remove swaps

Vladimir Kudrya
At least removing zram on service stop should be a simple fix:

ExecStop=/usr/sbin/zramswap stop