Compare commits

..

No commits in common. "ce98d76dbabd094e95ab9f2db69870ceaba398b2" and "a4853b86914454fcc8a77cddf6f688b072fd890a" have entirely different histories.

6 changed files with 25 additions and 47 deletions

View File

@ -3,39 +3,28 @@
#### 介绍
Afterburn is a one-shot agent for cloud-like platforms which interacts with provider-specific metadata endpoints. It is typically used in conjunction with Ignition.
#### Features
It comprises several modules which may run at different times during the lifecycle of an instance.
Depending on the specific platform, the following services may run in the initramfs on first boot:
-setting local hostname
-injecting network command-line arguments
The following features are conditionally available on some platforms as systemd service units:
-installing public SSH keys for local system users
-retrieving attributes from instance metadata
-checking in to the provider in order to report a successful boot or instance provisioning
#### 软件架构
软件架构说明
#### 安装教程
Install afterburn rpm package:
yum install afterburn
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
afterburn 是云底座操作系统NestOS的必需组件
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
master分支使用最新的上游版本如果检测到上游有最新版本发布先形成issue后再提交对应PR更新流程如下。
1. 提交issue
2. Fork 本仓库
3. 新建 Feat_xxx 分支
4. 提交代码
5. 新建 Pull Request
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 特技

BIN
afterburn-5.1.0.crate Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +0,0 @@
version_control: github
src_repo: coreos/afterburn
tag_prefix: "v"
separator: "."

View File

@ -1,4 +1,5 @@
%bcond_without check
%define debug_package %{nil}
%global __cargo_skip_build 0
%global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d')
@ -6,11 +7,12 @@
%global crate afterburn
Name: rust-%{crate}
Version: 5.3.0
Release: 2
Version: 5.1.0
Release: 1
Summary: Simple cloud provider agent
License: Apache-2.0
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: https://crates.io/crates/afterburn
Source0: %{crate}-%{version}.crate
Source1: %{crate}-%{version}-vendor.tar.gz
@ -25,7 +27,7 @@ Simple cloud provider agent.}
%package -n %{crate}
Summary: %{summary}
License: ASL 2.0 and MIT and BSD and 0BSD
License: ASL 2.0 and MIT and BSD and zlib
%{?systemd_requires}
%description -n %{crate} %{_description}
@ -74,9 +76,15 @@ to run in the initramfs on boot.
%prep
%autosetup -n %{crate}-%{version} -p1
# afterburn-sshkeys@.service is by default enabled for the 'core' user in NestOS
tar xvf %{SOURCE1}
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
systemd/afterburn-sshkeys@.service.in > \
systemd/afterburn-sshkeys@.service
%cargo_prep
mkdir -p .cargo
cat >.cargo/config << EOF
@ -87,12 +95,6 @@ replace-with = "vendored-sources"
directory = "vendor"
EOF
# afterburn-sshkeys@.service is by default enabled for the 'core' user in NestOS
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
systemd/afterburn-sshkeys@.service.in > \
systemd/afterburn-sshkeys@.service
%build
%cargo_build
@ -103,17 +105,8 @@ install -Dpm0644 -t %{buildroot}%{_unitdir} \
mkdir -p %{buildroot}%{dracutmodulesdir}
cp -a dracut/* %{buildroot}%{dracutmodulesdir}
cp -r $RPM_BUILD_DIR/afterburn-5.3.0/.cargo/bin %{buildroot}/usr
cp -r $RPM_BUILD_DIR/afterburn-5.1.0/.cargo/bin %{buildroot}/usr
%changelog
* Fri Dec 9 2022 duyiwei <duyiwei@kylinos.cn> - 5.3.0-2
- Enable debuginfo for fix strip
* Fri Nov 4 2022 duyiwei <duyiwei@kylinos.cn> - 5.3.0-1
- upgrade version to 5.3.0
* Thu Jun 2 2022 duyiwei <duyiwei@kylinos.cn> - 5.2.0-1
- upgrade version to 5.2.0
* Fri Dec 24 2021 duyiwei <duyiwei@kylinos.cn> - 5.1.0-1
- Package init