Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
8224847087
!19 Fix build error, I9HLU9
From: @jianli-97 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
2024-04-22 01:34:09 +00:00
jianli-97
f0adef741d Fix build error, I9HLU9 2024-04-18 11:05:43 +08:00
openeuler-ci-bot
c7b9097d04
!17 Specification NestOS Project Component Description File
From: @duyiwei7w 
Reviewed-by: @fu-shanqing 
Signed-off-by: @fu-shanqing
2023-06-21 05:44:56 +00:00
duyiwei
7ce11642b3
Specification NestOS Project Component Description File
Signed-off-by: duyiwei <duyiwei@kylinos.cn>
2023-06-21 03:14:45 +00:00
openeuler-ci-bot
34d332c16a
!14 [sync] PR-13: 修复zram-generator因rust升级导致的编译失败
From: @openeuler-sync-bot 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2023-03-10 01:18:18 +00:00
wu-leilei
9aec10d859 Fix builds with Rust 1.67
(cherry picked from commit da385098577c4cc6b33112a050c9034847550a7b)
2023-03-09 19:50:09 +08:00
openeuler-ci-bot
ab211b9eb9
!9 Enable debuginfo for fix strip
From: @dingdingaaaaa 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
2022-12-09 08:13:53 +00:00
丁紫薇
67ff52484c
Enable debuginfo for fix strip
Signed-off-by: 丁紫薇 <dingziwei@kylinos.cn>
2022-12-09 07:54:23 +00:00
openeuler-ci-bot
285d5d0b8c
!7 为该仓库新建yaml文件
From: @dingdingaaaaa 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
2022-11-29 07:41:47 +00:00
丁紫薇
590e48d301
add zram-generator.yaml.
Signed-off-by: 丁紫薇 <dingziwei@kylinos.cn>
2022-11-28 07:38:28 +00:00
3 changed files with 49 additions and 14 deletions

View File

@ -2,29 +2,50 @@
#### 介绍
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.
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
Install zram-generator rpm package:
yum install zram-generator
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.
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
A default config file may be located in /usr. This generator checks the following locations:
-/run/systemd/zram-generator.conf
-/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.
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
master分支使用最新的上游版本如果检测到上游有最新版本发布先形成issue后再提交对应PR更新流程如下。
1. 提交issue
2. Fork 本仓库
3. 新建 Feat_xxx 分支
4. 提交代码
5. 新建 Pull Request
#### 特技

View File

@ -3,7 +3,7 @@
Name: rust-%{crate}
Version: 1.1.2
Release: 2
Release: 5
Summary: Systemd unit generator for zram swap devices
License: MIT
@ -43,6 +43,7 @@ BuildArch: noarch
cp -a %{S:1} .
tar zxvf %{SOURCE2}
%cargo_prep
find %{_builddir} -type f -name 'Cargo.toml.orig' -exec rm -rf '{}' ';'
mkdir -p .cargo
cat >.cargo/config << EOF
@ -87,6 +88,15 @@ rm -rf %{buildroot}%{cargo_registry}/%{crate}-%{version}
%{_prefix}/lib/systemd/zram-generator.conf
%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
- remove useless subpackage zram-generator-devel

4
zram-generator.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: systemd/zram-generator
tag_prefix: "v"
separator: "."