Sync from SUSE:SLFO:Main afterburn revision b09d86b860c46b2499933cea72e98fc1
This commit is contained in:
commit
e171f36723
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
22
_service
Normal file
22
_service
Normal file
@ -0,0 +1,22 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="manual">
|
||||
<param name="url">https://github.com/coreos/afterburn.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="exclude">.git</param>
|
||||
<param name="filename">afterburn</param>
|
||||
<param name="revision">v5.4.1</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual"/>
|
||||
<service name="recompress" mode="manual">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="cargo_vendor" mode="manual">
|
||||
<param name="srcdir">afterburn</param>
|
||||
<param name="compression">xz</param>
|
||||
<param name="update">false</param>
|
||||
</service>
|
||||
</services>
|
6
_servicedata
Normal file
6
_servicedata
Normal file
@ -0,0 +1,6 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/coreos/afterburn.git</param>
|
||||
<param name="changesrevision">5b4a520bab90855258d78b00dbd2209e60ba60c9</param></service><service name="tar_scm">
|
||||
<param name="url">https://github.com/JanZerebecki/afterburn.git</param>
|
||||
<param name="changesrevision">104ec25049bf429578c60877c0ea503ee96354e4</param></service></servicedata>
|
BIN
afterburn-5.4.1.tar.xz
(Stored with Git LFS)
Normal file
BIN
afterburn-5.4.1.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
339
afterburn.changes
Normal file
339
afterburn.changes
Normal file
@ -0,0 +1,339 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 20 11:02:18 UTC 2023 - miika.alikirri@suse.com
|
||||
|
||||
- Update to version 5.4.1:
|
||||
* cargo: Afterburn release 5.4.1
|
||||
* docs/release-notes: update for release
|
||||
* build(deps): bump pnet_datalink from 0.31.0 to 0.33.0
|
||||
* build(deps): bump pnet_base from 0.31.0 to 0.33.0
|
||||
* build(deps): bump serde_json from 1.0.91 to 1.0.92
|
||||
* build(deps): bump zbus from 3.7.0 to 3.9.0
|
||||
* build(deps): bump anyhow from 1.0.68 to 1.0.69
|
||||
* build(deps): bump ipnetwork from 0.19.0 to 0.20.0
|
||||
* Sync repo templates ⚙
|
||||
* build(deps): bump tokio from 1.24.1 to 1.25.0
|
||||
* cargo: add configuration for cargo-vendor-filterer
|
||||
* cargo: Afterburn release 5.4.0
|
||||
* docs/release-notes: update for release
|
||||
* util: support DHCP option lookup from NetworkManager
|
||||
* util: factor out retries of DHCP option lookup
|
||||
* util: refactor DHCP option query helper into an enum
|
||||
* util: move dns_lease_key_lookup() to a separate module
|
||||
* cargo: update MSRV to 1.66
|
||||
* build(deps): bump reqwest from 0.11.13 to 0.11.14
|
||||
* build(deps): bump nix from 0.26.1 to 0.26.2
|
||||
* build(deps): bump serde_yaml from 0.9.16 to 0.9.17
|
||||
* cargo: update all packages to fix build error
|
||||
* cargo: continue to support openssh-keys 0.5
|
||||
* build(deps): bump openssh-keys from 0.5.0 to 0.6.0
|
||||
* cargo: drop serde_derive crate in favor of serde derive feature
|
||||
* cargo: use consistent declaration syntax for slog dependency
|
||||
* cargo: drop unused dependencies
|
||||
* Fix clippy 1.65 lints
|
||||
* build(deps): bump base64 from 0.13.1 to 0.21.0
|
||||
* build(deps): bump tokio from 1.19.2 to 1.24.1
|
||||
* workflows: update actions to current major versions
|
||||
* workflows: replace actions-rs/toolchain with dtolnay/rust-toolchain
|
||||
* build(deps): bump mailparse from 0.13.8 to 0.14.0
|
||||
* build(deps): bump serde from 1.0.151 to 1.0.152
|
||||
* build(deps): bump openssl from 0.10.44 to 0.10.45
|
||||
* build(deps): bump libsystemd from 0.5.0 to 0.6.0
|
||||
* build(deps): bump anyhow from 1.0.66 to 1.0.68
|
||||
* build(deps): bump base64 from 0.13.1 to 0.20.0
|
||||
* build(deps): bump serde_derive from 1.0.150 to 1.0.151
|
||||
* build(deps): bump serde_json from 1.0.89 to 1.0.91
|
||||
* build(deps): bump serde_yaml from 0.9.14 to 0.9.16
|
||||
* cargo: continue to support base64 0.13
|
||||
* cargo: continue to support mailparse 0.13.8
|
||||
* build(deps): bump mailparse from 0.13.8 to 0.14.0
|
||||
* build(deps): bump mockito from 0.31.0 to 0.31.1
|
||||
* build(deps): bump serde from 1.0.148 to 1.0.150
|
||||
* build(deps): bump openssl from 0.10.43 to 0.10.44
|
||||
* build(deps): bump base64 from 0.13.1 to 0.20.0
|
||||
* build(deps): bump nix from 0.25.0 to 0.26.1
|
||||
* build(deps): bump vmw_backdoor from 0.2.1 to 0.2.3
|
||||
* build(deps): bump serde from 1.0.147 to 1.0.148
|
||||
* build(deps): bump serde_json from 1.0.87 to 1.0.89
|
||||
* build(deps): bump openssl from 0.10.42 to 0.10.43
|
||||
* build(deps): bump reqwest from 0.11.12 to 0.11.13
|
||||
* cargo: continue to support clap 3.1
|
||||
* cargo: stop enabling LTO in release builds
|
||||
* providers/ibmcloud: avoid error if an ssh key not found in metadata
|
||||
* build(deps): bump clap from 3.2.5 to 3.2.23
|
||||
* build(deps): bump serde_yaml from 0.9.13 to 0.9.14
|
||||
* build(deps): bump anyhow from 1.0.65 to 1.0.66
|
||||
* build(deps): bump base64 from 0.13.0 to 0.13.1
|
||||
* build(deps): bump serde from 1.0.145 to 1.0.147
|
||||
* build(deps): bump serde_json from 1.0.86 to 1.0.87
|
||||
* dependabot: permute the label order to flush Dependabot's config cache
|
||||
* ci: migrate to new directory and method names
|
||||
* build(deps): bump serde_json from 1.0.85 to 1.0.86
|
||||
* workflows: update clippy to 1.64.0
|
||||
* build(deps): bump serde from 1.0.144 to 1.0.145
|
||||
* build(deps): bump openssl from 0.10.41 to 0.10.42
|
||||
* build(deps): bump reqwest from 0.11.11 to 0.11.12
|
||||
* Sync repo templates ⚙
|
||||
* build(deps): bump anyhow from 1.0.64 to 1.0.65
|
||||
* build(deps): bump serde_yaml from 0.9.11 to 0.9.13
|
||||
* docs/release-notes: fixed checkin services ordering
|
||||
* systemd: add explicit ordering, after multi-user.target
|
||||
* build(deps): bump serde-xml-rs from 0.5.1 to 0.6.0
|
||||
* build(deps): bump serde_yaml from 0.9.10 to 0.9.11
|
||||
* build(deps): bump anyhow from 1.0.62 to 1.0.64
|
||||
* workflows: bump clippy to 1.63.0
|
||||
* network: fix clippy 1.63.0 lints
|
||||
* build(deps): bump serde_json from 1.0.83 to 1.0.85
|
||||
* build(deps): bump anyhow from 1.0.61 to 1.0.62
|
||||
* build(deps): bump serde_yaml from 0.9.9 to 0.9.10
|
||||
* build(deps): bump serde from 1.0.143 to 1.0.144
|
||||
* build(deps): bump serde from 1.0.142 to 1.0.143
|
||||
* build(deps): bump nix from 0.24.2 to 0.25.0
|
||||
* build(deps): bump serde_yaml from 0.9.4 to 0.9.9
|
||||
* build(deps): bump anyhow from 1.0.60 to 1.0.61
|
||||
* build(deps): bump anyhow from 1.0.59 to 1.0.60
|
||||
* build(deps): bump serde_yaml from 0.9.2 to 0.9.4
|
||||
* build(deps): bump serde from 1.0.141 to 1.0.142
|
||||
* build(deps): bump serde_json from 1.0.82 to 1.0.83
|
||||
* Sync repo templates ⚙
|
||||
* cargo: allow serde_yaml 0.8
|
||||
* dependabot: automatically add "dependency" and "skip-notes" labels to PRs
|
||||
* Sync repo templates ⚙
|
||||
* build(deps): bump serde_yaml from 0.8.26 to 0.9.2
|
||||
* build(deps): bump anyhow from 1.0.58 to 1.0.59
|
||||
* build(deps): bump serde from 1.0.140 to 1.0.141
|
||||
* build(deps): bump serde from 1.0.139 to 1.0.140
|
||||
* build(deps): bump nix from 0.24.1 to 0.24.2
|
||||
* build(deps): bump serde_yaml from 0.8.25 to 0.8.26
|
||||
* cargo: update version ranges for post-1.x deps
|
||||
* providers: Use inline `format!` in a few places
|
||||
* *: bump MSRV to 1.58.0
|
||||
* build(deps): bump serde_yaml from 0.8.24 to 0.8.25
|
||||
* build(deps): bump openssl from 0.10.40 to 0.10.41
|
||||
* build(deps): bump serde from 1.0.138 to 1.0.139
|
||||
* Sync repo templates ⚙
|
||||
* build(deps): bump serde from 1.0.137 to 1.0.138
|
||||
* build(deps): bump ipnetwork from 0.19.0 to 0.20.0
|
||||
* build(deps): bump serde_json from 1.0.81 to 1.0.82
|
||||
* docs: add release notes
|
||||
* Sync repo templates ⚙
|
||||
* Sync repo templates ⚙
|
||||
* Sync repo templates ⚙
|
||||
* build(deps): bump anyhow from 1.0.57 to 1.0.58
|
||||
* templates/release-checklist: delete all .a files from vendor dir
|
||||
* cargo: update
|
||||
* cargo: update clap to 3.2.5
|
||||
* build(deps): bump reqwest from 0.11.10 to 0.11.11
|
||||
* build(deps): bump pnet_datalink from 0.30.0 to 0.31.0
|
||||
* build(deps): bump pnet_base from 0.30.0 to 0.31.0
|
||||
* copr: mark git checkout as safe
|
||||
* build(deps): bump pnet_datalink from 0.29.0 to 0.30.0
|
||||
* build(deps): bump pnet_base from 0.29.0 to 0.30.0
|
||||
* workflows: update issue link
|
||||
* dependabot: switch to weekly cadence
|
||||
* ci: mark git checkout as safe
|
||||
* providers/aws: expose instance availability-zone-id as AWS_AVAILABILITY_ZONE_ID
|
||||
* github/release-checklist: Fixup path for Windows binaries
|
||||
* build(deps): bump serde_json from 1.0.80 to 1.0.81
|
||||
* build(deps): bump serde_yaml from 0.8.23 to 0.8.24
|
||||
* build(deps): bump openssl from 0.10.38 to 0.10.40
|
||||
* build(deps): bump serde from 1.0.136 to 1.0.137
|
||||
* build(deps): bump serde_json from 1.0.79 to 1.0.80
|
||||
* build(deps): bump nix from 0.23.1 to 0.24.1
|
||||
* build(deps): bump ipnetwork from 0.18.0 to 0.19.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 23 12:09:40 UTC 2022 - jan.suse@zerebecki.de
|
||||
|
||||
- Update to version 5.3.0:
|
||||
* cargo: Afterburn release 5.3.0
|
||||
* build(deps): bump nix from 0.24.0 to 0.24.1
|
||||
* build(deps): bump anyhow from 1.0.56 to 1.0.57
|
||||
* build(deps): bump nix from 0.23.1 to 0.24.0
|
||||
* systemd: enable sshkeys on Power VS platform
|
||||
* network: Encode information for systemd-networkd-wait-online
|
||||
* build(deps): bump ipnetwork from 0.18.0 to 0.19.0
|
||||
* build(deps): bump crossbeam-channel from 0.5.2 to 0.5.4
|
||||
* cargo: update to clap 3.1
|
||||
* cargo: enable clap wrap_help feature
|
||||
* cli: run clap tests
|
||||
* cli: avoid deprecated clap constructs
|
||||
* cargo: update to clap 3.0
|
||||
* cli: use clap mechanism to require exp subcommand
|
||||
* build(deps): bump pnet_datalink from 0.28.0 to 0.29.0
|
||||
* build(deps): bump pnet_base from 0.28.0 to 0.29.0
|
||||
* build(deps): bump slog-term from 2.8.1 to 2.9.0
|
||||
* cargo: declare MSRV in Cargo.toml
|
||||
* cargo: update to Rust 2021; bump MSRV to 1.56.0
|
||||
* workflows: update clippy to 1.59.0
|
||||
* copr: abort if specfile fetch fails
|
||||
* providers/aws: add AWS_IPV6 attribute
|
||||
* providers/aws: bump metadata version to 2021-01-03
|
||||
* kubevirt: Add KubeVirt platform support
|
||||
* *.service: add/update Documentation field
|
||||
* build(deps): bump regex from 1.5.4 to 1.5.5
|
||||
fixes RUSTSEC-2022-0013 AKA CVE-2022-24713
|
||||
* build(deps): bump reqwest from 0.11.9 to 0.11.10
|
||||
* github/release-checklist: Remove Windows binaries from vendored sources
|
||||
* build(deps): bump anyhow from 1.0.55 to 1.0.56
|
||||
* build(deps): bump mockito from 0.30.0 to 0.31.0
|
||||
fixes RUSTSEC-2020-0095
|
||||
* aws/mock_tests: explicitly drop mocks before resetting
|
||||
* aws/mock_tests: split out IMDS tests
|
||||
* aws/mock_tests: factor out map building
|
||||
* build(deps): bump anyhow from 1.0.54 to 1.0.55
|
||||
* workflows/rpm: reword workflow and job name
|
||||
* workflows/rpm: do full git clone
|
||||
* build(deps): bump anyhow from 1.0.53 to 1.0.54
|
||||
* workflows: add "RPM build" test
|
||||
* templates/release-checklist: add Fedora/RHCOS packaging instructions
|
||||
* lockfile: refresh
|
||||
* tests: explicitly scope conflicting mocks
|
||||
* Add COPR integration Makefile
|
||||
* build(deps): bump serde_json from 1.0.78 to 1.0.79
|
||||
* build(deps): bump crossbeam-utils from 0.8.5 to 0.8.7
|
||||
* build(deps): bump block-buffer from 0.10.0 to 0.10.2
|
||||
* build(deps): bump thread_local from 1.1.3 to 1.1.4
|
||||
fixes RUSTSEC-2022-0006
|
||||
* build(deps): bump slog-term from 2.8.0 to 2.8.1
|
||||
* build(deps): bump serde from 1.0.135 to 1.0.136
|
||||
* *: use `RemainAfterExit` on all oneshot services
|
||||
* build(deps): bump anyhow from 1.0.52 to 1.0.53
|
||||
* build(deps): bump serde_json from 1.0.75 to 1.0.78
|
||||
* build(deps): bump mailparse from 0.13.7 to 0.13.8
|
||||
* build(deps): bump serde from 1.0.134 to 1.0.135
|
||||
* ci: skip broken kdump.crash kola test Issue: https://github.com/coreos/fedora-coreos-tracker/issues/1075
|
||||
* build(deps): bump serde from 1.0.133 to 1.0.134
|
||||
* build(deps): bump serde_json from 1.0.74 to 1.0.75
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 18 21:12:09 UTC 2022 - jan.suse@zerebecki.de
|
||||
|
||||
- Update to version 5.2.0:
|
||||
* providers: log message when SSH key is removed
|
||||
* providers: limit hostname file output value to HOST_NAME_MAX bytes
|
||||
* Consistently un-capitalize log messages
|
||||
* Explicitly log the hostname we write
|
||||
* providers/microsoft: allow unused fields in goal state structs
|
||||
* providers: only log we wrote SSH keys when we actually did
|
||||
- Update to version 5.1.0:
|
||||
* Add PowerVS provider
|
||||
* cli: correctly print version when --version specified
|
||||
* cli: don't report an error when --help or --version is specified
|
||||
* providers/packet: access metadata service over HTTPS
|
||||
* providers/gcp: access GCP metadata service by IP address
|
||||
* minimum supported rust version is now 1.49.0
|
||||
* Refresh fix-authorized-keys-location.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 13 19:05:51 UTC 2022 - jan.suse@zerebecki.de
|
||||
|
||||
- Update some dependencies
|
||||
* build(deps): bump nix from 0.17.0 and 0.20.0 to 0.23.1
|
||||
This fixes the following security issues:
|
||||
https://rustsec.org/advisories/RUSTSEC-2021-0119
|
||||
* build(deps): bump generic-array from 0.12.3 to 0.12.4
|
||||
This fixes a security issue:
|
||||
https://rustsec.org/advisories/RUSTSEC-2020-0146 AKA CVE-2020-36465
|
||||
* build(deps): bump futures-util from 0.3.6 to 0.3.15
|
||||
This fixes a security issue:
|
||||
https://rustsec.org/advisories/RUSTSEC-2020-0059 AKA CVE-2020-35905
|
||||
* build(deps): bump rand_core from 0.6.1 to 0.6.3
|
||||
This fixes a security issue:
|
||||
https://rustsec.org/advisories/RUSTSEC-2021-0023
|
||||
AKA CVE-2021-27378, bsc#1182432
|
||||
* build(deps): bump hyper from 0.14.2 to 0.14.11
|
||||
This fixes two security issues:
|
||||
https://rustsec.org/advisories/RUSTSEC-2021-0078
|
||||
AKA CVE-2021-32715, bsc#1188173
|
||||
https://rustsec.org/advisories/RUSTSEC-2021-0079
|
||||
AKA CVE-2021-32714, bsc#1188174
|
||||
* build(deps): bump tokio from 1.0.1 to 1.15.0
|
||||
This fixes two security issues:
|
||||
https://rustsec.org/advisories/RUSTSEC-2021-0124
|
||||
AKA CVE-2021-45710, bsc#1194119
|
||||
https://rustsec.org/advisories/RUSTSEC-2021-0072 AKA CVE-2021-38191
|
||||
- Remove cargo_audit service, as it makes no sense as a service (it doesn't
|
||||
automatically get rerun), it would make more sense during the build process
|
||||
as then it gets rerun if the package or the vulnerability database get
|
||||
changed
|
||||
- switch services from disabled to manual
|
||||
- remove hard coded author for tar_scm service
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 16 10:04:04 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- No reason to exclude armv7, since it builds properly
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 2 03:43:28 UTC 2021 - William Brown <william.brown@suse.com>
|
||||
|
||||
- Add cargo_audit service
|
||||
- Resolve incomplete use of services for getting source tars.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 02 03:25:04 UTC 2021 - slunkad@suse.de
|
||||
|
||||
- Update to version 5.0.0:
|
||||
* cargo: Afterburn release 5.0.0
|
||||
* providers: add Azure Stack Hub (azurestack)
|
||||
* providers: move azure into microsoft module
|
||||
* build(deps): bump anyhow from 1.0.39 to 1.0.40
|
||||
* ci: adapt to new buildroot image
|
||||
* build(deps): bump serde from 1.0.124 to 1.0.125
|
||||
* build(deps): bump anyhow from 1.0.38 to 1.0.39
|
||||
* cargo: accept mockito 0.29
|
||||
* build(deps): bump mockito from 0.29.0 to 0.30.0
|
||||
* cli: stop wrapping command-line parse errors
|
||||
* Switch from error-chain to anyhow
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 13 18:39:31 UTC 2021 - Robert Schweikert <rjschwei@suse.com>
|
||||
|
||||
- Forward port fix-authorized-keys-location.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 12 20:00:43 UTC 2021 - Robert Schweikert <rjschwei@suse.com>
|
||||
|
||||
- Add set-default-user.patch
|
||||
+ Set the default user to suse
|
||||
- Add fix-authorized-keys-location.patch
|
||||
+ Write the ssh keys to the standard location
|
||||
- Add no-network-args.patch
|
||||
+ Networks arguments on the kernel command line are set during image build
|
||||
there is no need for another place for a hard coded list.
|
||||
- Create target dir for afterburn to write configuration file to
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 11 14:02:00 UTC 2021 - Sayali Lunkad <sayali.lunkad@suse.com>
|
||||
|
||||
- Add dracut modules for afterburn
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 26 15:18:35 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
|
||||
|
||||
- Update to version 5.0.0
|
||||
* Update minimum rust toolchain version 1.44
|
||||
* Switch from error-chain to anyhow
|
||||
* Remove cl-legacy feature
|
||||
* ibmcloud: don't ignore I/O error when parsing metadata
|
||||
* providers: fix clippy::unnecessary_wraps lint on 1.50
|
||||
* workflows: update pinned lint toolchain to 1.50.0
|
||||
* cli: stop wrapping command-line parse errors
|
||||
* github: release checklist cleanups
|
||||
* providers: add Azure Stack Hub
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 19 14:13:46 UTC 2021 - Sayali Lunkad <sayali.lunkad@suse.com>
|
||||
|
||||
- Set rust version to minimum required by upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 16 12:30:46 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Reduce boilerplate emission from %service_*. Add a bit of build
|
||||
recipe modernization and safeguarding.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 16 11:18:33 UTC 2021 - Sayali Lunkad <sayali.lunkad@suse.com>
|
||||
|
||||
- Initial commit
|
113
afterburn.spec
Normal file
113
afterburn.spec
Normal file
@ -0,0 +1,113 @@
|
||||
#
|
||||
# spec file for package afterburn
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now
|
||||
|
||||
%global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d')
|
||||
|
||||
Name: afterburn
|
||||
Version: 5.4.1
|
||||
Release: 0
|
||||
Summary: A cloud provider agent
|
||||
License: Apache-2.0
|
||||
URL: https://coreos.github.io/afterburn/
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: vendor.tar.xz
|
||||
Source2: cargo_config
|
||||
Patch1: fix-authorized-keys-location.patch
|
||||
Patch2: set-default-user.patch
|
||||
Patch3: no-network-args.patch
|
||||
|
||||
ExcludeArch: %ix86 s390x ppc64le
|
||||
|
||||
BuildRequires: cargo
|
||||
BuildRequires: rust >= 1.66.0
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
|
||||
%description
|
||||
Afterburn is a one-shot agent for cloud-like platforms which interacts with provider-specific metadata endpoints.
|
||||
|
||||
%package dracut
|
||||
Summary: Dracut modules for afterburn
|
||||
BuildRequires: pkgconfig(dracut)
|
||||
Requires: %{name}%{?_isa} = %{?epoch:}%{version}-%{release}
|
||||
Requires: dracut
|
||||
|
||||
%description dracut
|
||||
Dracut module that enables afterburn and corresponding services
|
||||
to run in the initramfs on boot.
|
||||
|
||||
%prep
|
||||
%autosetup -N -a1
|
||||
%patch1 -p1
|
||||
%patch2 -p0
|
||||
%patch3 -p0
|
||||
|
||||
mkdir .cargo
|
||||
cp %{SOURCE2} .cargo/config
|
||||
# Remove exec bits to prevent an issue in fedora shebang checking
|
||||
find vendor -type f -name \*.rs -exec chmod -x '{}' +
|
||||
|
||||
%build
|
||||
export RUSTFLAGS="%{rustflags}"
|
||||
cargo build --offline --release
|
||||
|
||||
%install
|
||||
install -D -d -m 0755 %{buildroot}%{_bindir}
|
||||
install -D -d -m 0755 %{buildroot}%{_unitdir}
|
||||
install -D -d -m 0755 %{buildroot}%{_sysconfdir}/cmdline.d
|
||||
|
||||
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
||||
install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}-checkin.service %{buildroot}%{_unitdir}/%{name}-checkin.service
|
||||
install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}-firstboot-checkin.service %{buildroot}%{_unitdir}/%{name}-firstboot-checkin.service
|
||||
install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}-sshkeys.target %{buildroot}%{_unitdir}/%{name}-sshkeys.target
|
||||
sed -e 's,@DEFAULT_INSTANCE@,'suse',' < systemd/%{name}-sshkeys@.service.in > systemd/%{name}-sshkeys@.service.tmp
|
||||
mv systemd/%{name}-sshkeys@.service.tmp systemd/%{name}-sshkeys@.service
|
||||
install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}-sshkeys@.service %{buildroot}%{_unitdir}/%{name}-sshkeys@.service
|
||||
mkdir -p %{buildroot}%{dracutmodulesdir}
|
||||
cp -a dracut/* %{buildroot}%{dracutmodulesdir}
|
||||
rm %{buildroot}%{dracutmodulesdir}/30afterburn/afterburn-network-kargs.service
|
||||
|
||||
%pre
|
||||
%service_add_pre %{name}.service %{name}-checkin.service %{name}-firstboot-checkin.service %{name}-sshkeys@.service
|
||||
|
||||
%post
|
||||
%service_add_post %{name}.service %{name}-checkin.service %{name}-firstboot-checkin.service %{name}-sshkeys@.service
|
||||
|
||||
%preun
|
||||
%service_del_preun %{name}.service %{name}-checkin.service %{name}-firstboot-checkin.service %{name}-sshkeys@.service
|
||||
|
||||
%postun
|
||||
%service_del_postun %{name}.service %{name}-checkin.service %{name}-firstboot-checkin.service %{name}-sshkeys@.service
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/afterburn
|
||||
%{_unitdir}/afterburn.service
|
||||
%{_unitdir}/afterburn-checkin.service
|
||||
%{_unitdir}/afterburn-firstboot-checkin.service
|
||||
%{_unitdir}/afterburn-sshkeys@.service
|
||||
%{_unitdir}/%{name}-sshkeys.target
|
||||
|
||||
%files dracut
|
||||
%dir %{_sysconfdir}/cmdline.d
|
||||
%{dracutmodulesdir}/30afterburn/
|
||||
|
||||
%changelog
|
5
cargo_config
Normal file
5
cargo_config
Normal file
@ -0,0 +1,5 @@
|
||||
[source.crates-io]
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
15
fix-authorized-keys-location.patch
Normal file
15
fix-authorized-keys-location.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/src/providers/mod.rs b/src/providers/mod.rs
|
||||
index f684d22..153d473 100644
|
||||
--- a/src/providers/mod.rs
|
||||
+++ b/src/providers/mod.rs
|
||||
@@ -98,8 +98,8 @@ fn write_ssh_keys(user: User, ssh_keys: Vec<PublicKey>) -> Result<()> {
|
||||
.context("failed to switch user/group")?;
|
||||
|
||||
// get paths
|
||||
- let dir_path = user.home_dir().join(".ssh").join("authorized_keys.d");
|
||||
- let file_name = "afterburn";
|
||||
+ let dir_path = user.home_dir().join(".ssh");
|
||||
+ let file_name = "authorized_keys";
|
||||
let file_path = &dir_path.join(file_name);
|
||||
|
||||
// stringify for logging
|
15
no-network-args.patch
Normal file
15
no-network-args.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- dracut/30afterburn/module-setup.sh.orig
|
||||
+++ dracut/30afterburn/module-setup.sh
|
||||
@@ -16,12 +16,8 @@ install() {
|
||||
inst_simple "$moddir/afterburn-hostname.service" \
|
||||
"$systemdutildir/system/afterburn-hostname.service"
|
||||
|
||||
- inst_simple "$moddir/afterburn-network-kargs.service" \
|
||||
- "$systemdutildir/system/afterburn-network-kargs.service"
|
||||
-
|
||||
# These services are only run once on first-boot, so they piggyback
|
||||
# on Ignition completion target.
|
||||
mkdir -p "$initdir/$systemdsystemunitdir/ignition-complete.target.requires"
|
||||
ln -s "../afterburn-hostname.service" "$initdir/$systemdsystemunitdir/ignition-complete.target.requires/afterburn-hostname.service"
|
||||
- ln -s "../afterburn-network-kargs.service" "$initdir/$systemdsystemunitdir/ignition-complete.target.requires/afterburn-network-kargs.service"
|
||||
}
|
11
set-default-user.patch
Normal file
11
set-default-user.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -1,7 +1,7 @@
|
||||
DESTDIR ?=
|
||||
PREFIX ?= /usr
|
||||
RELEASE ?= 1
|
||||
-DEFAULT_INSTANCE ?= core
|
||||
+DEFAULT_INSTANCE ?= suse
|
||||
|
||||
ifeq ($(RELEASE),1)
|
||||
PROFILE ?= release
|
BIN
vendor.tar.xz
(Stored with Git LFS)
Normal file
BIN
vendor.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user