Compare commits
No commits in common. "82248470879ba16d3ac39b7d689fa2adbb731823" and "4df1478f7e8a3cf4ddcc54b31de5715b25f4b77a" have entirely different histories.
8224847087
...
4df1478f7e
47
README.md
47
README.md
@ -2,50 +2,29 @@
|
|||||||
|
|
||||||
#### 介绍
|
#### 介绍
|
||||||
This is a systemd unit generator that enables swap on zram.
|
This is a systemd unit generator that enables swap on zram.
|
||||||
(With zram, there is no physical swap device. Part of the available RAM
|
|
||||||
is used to store compressed pages, essentially trading CPU cycles for memory.)
|
#### 软件架构
|
||||||
To activate, install zram-generator-defaults subpackage.
|
软件架构说明
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
#### 安装教程
|
||||||
|
|
||||||
Install zram-generator rpm package:
|
1. xxxx
|
||||||
|
2. xxxx
|
||||||
yum install zram-generator
|
3. xxxx
|
||||||
|
|
||||||
To install directly from sources, execute make build && sudo make install NOBUILD=true:
|
|
||||||
|
|
||||||
-zram-generator binary is installed in the systemd system generator directory (usually /usr/lib/systemd/system-generators/)
|
|
||||||
-zram-generator(8) and zram-generator.conf(5) manpages are installed into /usr/share/man/manN/, this requires ronn.
|
|
||||||
-units/systemd-zram-setup@.service is copied into the systemd system unit directory (usually /usr/lib/systemd/system/)
|
|
||||||
-zram-generator.conf.example is copied into /usr/share/doc/zram-generator/ You need though create your own config file at one of the locations listed above.
|
|
||||||
|
|
||||||
#### 使用说明
|
#### 使用说明
|
||||||
|
|
||||||
A default config file may be located in /usr. This generator checks the following locations:
|
1. xxxx
|
||||||
|
2. xxxx
|
||||||
-/run/systemd/zram-generator.conf
|
3. xxxx
|
||||||
-/etc/systemd/zram-generator.conf
|
|
||||||
-/usr/local/lib/systemd/zram-generator.conf
|
|
||||||
-/usr/lib/systemd/zram-generator.conf
|
|
||||||
… and the first file found in that list wins.
|
|
||||||
|
|
||||||
In addition, "drop-ins" will be loaded from .conf files in /etc/systemd/zram-generator.conf.d/, /usr/lib/systemd/zram-generator.conf.d/, etc.
|
|
||||||
|
|
||||||
The main configuration file is read before any of the drop-ins and has the lowest precedence; entries in the drop-in files override entries in the main configuration file.
|
|
||||||
|
|
||||||
See systemd.unit(5) for a detailed description of this logic.
|
|
||||||
|
|
||||||
See zram-generator.conf.example for a list of available settings.
|
|
||||||
|
|
||||||
#### 参与贡献
|
#### 参与贡献
|
||||||
|
|
||||||
master分支使用最新的上游版本,如果检测到上游有最新版本发布,先形成issue后再提交对应PR更新,流程如下。
|
1. Fork 本仓库
|
||||||
1. 提交issue
|
2. 新建 Feat_xxx 分支
|
||||||
2. Fork 本仓库
|
3. 提交代码
|
||||||
3. 新建 Feat_xxx 分支
|
4. 新建 Pull Request
|
||||||
4. 提交代码
|
|
||||||
5. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 特技
|
#### 特技
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: rust-%{crate}
|
Name: rust-%{crate}
|
||||||
Version: 1.1.2
|
Version: 1.1.2
|
||||||
Release: 5
|
Release: 2
|
||||||
Summary: Systemd unit generator for zram swap devices
|
Summary: Systemd unit generator for zram swap devices
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -43,7 +43,6 @@ BuildArch: noarch
|
|||||||
cp -a %{S:1} .
|
cp -a %{S:1} .
|
||||||
tar zxvf %{SOURCE2}
|
tar zxvf %{SOURCE2}
|
||||||
%cargo_prep
|
%cargo_prep
|
||||||
find %{_builddir} -type f -name 'Cargo.toml.orig' -exec rm -rf '{}' ';'
|
|
||||||
|
|
||||||
mkdir -p .cargo
|
mkdir -p .cargo
|
||||||
cat >.cargo/config << EOF
|
cat >.cargo/config << EOF
|
||||||
@ -88,15 +87,6 @@ rm -rf %{buildroot}%{cargo_registry}/%{crate}-%{version}
|
|||||||
%{_prefix}/lib/systemd/zram-generator.conf
|
%{_prefix}/lib/systemd/zram-generator.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Apr 18 2024 lijian <lijian2@kylinos.cn> - 1.1.2-5
|
|
||||||
- Fix build error, I9HLU9
|
|
||||||
|
|
||||||
* Thu Mar 09 2023 wulei <wulei80@h-partners.com> - 1.1.2-4
|
|
||||||
- Fix builds with Rust 1.67
|
|
||||||
|
|
||||||
* Fri Dec 09 2022 dingdingaaaaa <dingziwei@kylinos.cn> - 1.1.2-3
|
|
||||||
- Enable debuginfo for fix strip
|
|
||||||
|
|
||||||
* Thu Sep 8 2022 duyiwei <duyiwei@kylinos.cn> - 1.1.2-2
|
* Thu Sep 8 2022 duyiwei <duyiwei@kylinos.cn> - 1.1.2-2
|
||||||
- remove useless subpackage zram-generator-devel
|
- remove useless subpackage zram-generator-devel
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: github
|
|
||||||
src_repo: systemd/zram-generator
|
|
||||||
tag_prefix: "v"
|
|
||||||
separator: "."
|
|
||||||
Loading…
x
Reference in New Issue
Block a user