SHA256
1
0
forked from pool/afterburn
afterburn/fix-authorized-keys-location.patch
Darragh O'Reilly 673225f18e Accepting request 947309 from home:jzerebecki:branches:devel:kubic:ignition
- 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

OBS-URL: https://build.opensuse.org/request/show/947309
OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/afterburn?expand=0&rev=16
2022-01-19 10:01:52 +00:00

16 lines
582 B
Diff

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