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. 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: 1. xxxx
2. xxxx
yum install afterburn 3. xxxx
#### 使用说明 #### 使用说明
afterburn 是云底座操作系统NestOS的必需组件 1. xxxx
2. xxxx
3. xxxx
#### 参与贡献 #### 参与贡献
master分支使用最新的上游版本如果检测到上游有最新版本发布先形成issue后再提交对应PR更新流程如下。 1. Fork 本仓库
1. 提交issue 2. 新建 Feat_xxx 分支
2. Fork 本仓库 3. 提交代码
3. 新建 Feat_xxx 分支 4. 新建 Pull Request
4. 提交代码
5. 新建 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 %bcond_without check
%define debug_package %{nil}
%global __cargo_skip_build 0 %global __cargo_skip_build 0
%global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d') %global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d')
@ -6,11 +7,12 @@
%global crate afterburn %global crate afterburn
Name: rust-%{crate} Name: rust-%{crate}
Version: 5.3.0 Version: 5.1.0
Release: 2 Release: 1
Summary: Simple cloud provider agent 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 URL: https://crates.io/crates/afterburn
Source0: %{crate}-%{version}.crate Source0: %{crate}-%{version}.crate
Source1: %{crate}-%{version}-vendor.tar.gz Source1: %{crate}-%{version}-vendor.tar.gz
@ -25,7 +27,7 @@ Simple cloud provider agent.}
%package -n %{crate} %package -n %{crate}
Summary: %{summary} Summary: %{summary}
License: ASL 2.0 and MIT and BSD and 0BSD License: ASL 2.0 and MIT and BSD and zlib
%{?systemd_requires} %{?systemd_requires}
%description -n %{crate} %{_description} %description -n %{crate} %{_description}
@ -74,9 +76,15 @@ to run in the initramfs on boot.
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
# afterburn-sshkeys@.service is by default enabled for the 'core' user in NestOS
tar xvf %{SOURCE1} tar xvf %{SOURCE1}
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
systemd/afterburn-sshkeys@.service.in > \
systemd/afterburn-sshkeys@.service
%cargo_prep
mkdir -p .cargo mkdir -p .cargo
cat >.cargo/config << EOF cat >.cargo/config << EOF
@ -87,12 +95,6 @@ replace-with = "vendored-sources"
directory = "vendor" directory = "vendor"
EOF 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 %build
%cargo_build %cargo_build
@ -103,17 +105,8 @@ install -Dpm0644 -t %{buildroot}%{_unitdir} \
mkdir -p %{buildroot}%{dracutmodulesdir} mkdir -p %{buildroot}%{dracutmodulesdir}
cp -a dracut/* %{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 %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 * Fri Dec 24 2021 duyiwei <duyiwei@kylinos.cn> - 5.1.0-1
- Package init - Package init