!4 append arm ko for pxe

From: @xinsheng3 
Reviewed-by: @xyncoder, @zhuchunyi 
Signed-off-by: @zhuchunyi
This commit is contained in:
openeuler-ci-bot 2022-03-03 12:00:49 +00:00 committed by Gitee
commit 66cea22279
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 77 additions and 36 deletions

View File

@ -4,19 +4,16 @@
a tool for tailoring image
#### Software Architecture
Software architecture description
x86_64/aarch64
#### Installation
1. xxxx
2. xxxx
3. xxxx
yum install imageTailor
#### Instructions
1. xxxx
2. xxxx
3. xxxx
cd /opt/imageTailor
./mkdliso -h
#### Contribution
@ -24,13 +21,3 @@ Software architecture description
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,23 +1,19 @@
# imageTailor
#### 介绍
a tool for tailoring image
裁剪ISO工具
#### 软件架构
软件架构说明
x86_64/aarch64
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
yum install imageTailor
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
cd /opt/imageTailor
./mkdliso -h
#### 参与贡献
@ -25,13 +21,3 @@ a tool for tailoring image
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

BIN
imageTailor-1.0.1.tar.gz Normal file

Binary file not shown.

68
imageTailor.spec Normal file
View File

@ -0,0 +1,68 @@
Name: imageTailor
Summary: Cut out the ISO
License: Mulan PSL v2
Group: System/Management
Version: 1.0.1
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}
Source: https://gitee.com/openeuler/imageTailor/repository/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Requires: dnf-utils tar python3 drpm genisoimage python3-kiwi kiwi-tools kiwi-systemdeps
%description
Dopralinux custom tool
%prep
%setup -c
%install
iso_arch=$(uname -m)
mkdir -p %{buildroot}/opt/imageTailor
cd %{name}
cp -a conf/${iso_arch}/* %{buildroot}/opt/imageTailor
cp -a conf/common/* %{buildroot}/opt/imageTailor
cp -a mkdliso %{buildroot}/opt/imageTailor
for file in $(find %{buildroot}/opt/imageTailor -name "security_s.conf");do chmod 600 $file;done
for file in $(find %{buildroot}/opt/imageTailor -name "S00setcap");do chmod 600 $file;done
for file in $(find %{buildroot}/opt/imageTailor -name "S00reboot");do chmod 600 $file;done
for file in $(find %{buildroot}/opt/imageTailor -name "isopackage.sdf");do chmod 600 $file;done
chmod 600 %{buildroot}/opt/imageTailor/custom/cfg_*/cmd.conf
chmod 600 %{buildroot}/opt/imageTailor/custom/cfg_*/rpm.conf
chmod 600 %{buildroot}/opt/imageTailor/custom/cfg_*/security_s.conf
chmod 600 %{buildroot}/opt/imageTailor/custom/cfg_*/sys.conf
chmod 500 %{buildroot}/opt/imageTailor/kiwi/hook/config.sh
chmod 500 %{buildroot}/opt/imageTailor/kiwi/hook/images.sh
chmod 500 %{buildroot}/opt/imageTailor/mkdliso
cd -
%pre
%post
%preun
%postun
%files
%defattr(-,root,root)
%dir /opt/imageTailor
/opt/imageTailor/*
%clean
rm -rf $RPM_BUILD_ROOT/*
rm -rf %{_tmppath}/%{name}-%{version}
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
%changelog
* Thu Mar 03 2022 xinsheng<xinsheng3@huawei.com> - 1.0.1-1
- ID:NA
- SUG:NA
- DESC:append arm ko for pxe
* Mon Feb 28 2022 xinsheng<xinsheng3@huawei.com> - 1.0.0-1
- ID:NA
- SUG:NA
- DESC:package init