Update documentation

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-06-18 11:30:24 +02:00
parent def91f4369
commit 5e437cfbfc
2 changed files with 14 additions and 7 deletions

View File

@ -24,10 +24,11 @@ BuildRequires: rust-packaging
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
%global _description %{expand: %global _description %{expand:
This is a systemd unit generator that creates a unit file to create a This is a systemd unit generator that enables swap on zram.
zram device. To activate, copy (With zram, there is no physical swap device. Part of the avaialable RAM
/usr/share/doc/zram-generator/zram-generator.conf.example to is used to store compressed pages, essentially trading CPU cycles for memory.)
/etc/systemd/zram-generator.conf and possibly edit to adjust the limits.}
To activate, install %{crate}-defaults subpackage.}
%description %{_description} %description %{_description}
@ -49,14 +50,14 @@ Recommends: util-linux
%{_systemdgeneratordir}/zram-generator %{_systemdgeneratordir}/zram-generator
%{_unitdir}/swap-create@.service %{_unitdir}/swap-create@.service
%package -n %{crate}-default %package -n %{crate}-defaults
Summary: Default configuration for %{crate} Summary: Default configuration for %{crate}
BuildArch: noarch BuildArch: noarch
%description -n %{crate}-default %description -n %{crate}-defaults
%{summary}. %{summary}.
%files %files -n %{crate}-defaults
%{_prefix}/lib/systemd/zram-generator.conf %{_prefix}/lib/systemd/zram-generator.conf
%endif %endif

View File

@ -1 +1,7 @@
# This config file enables a /dev/zram0 device with the default settings:
# — size — half of available RAM or 4GB, whichever is less
# — compression — most likely lzo-rle
#
# To disable, uninstall rust-zram-defaults or create empty
# /etc/systemd/zram-generator.conf file.
[zram0] [zram0]