afterburn/fix-authorized-keys-location.patch
Sayali Lunkad 78a2c6cd8d Accepting request 905904 from home:rjschwei:branches:devel:kubic:ignition
- 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

OBS-URL: https://build.opensuse.org/request/show/905904
OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/afterburn?expand=0&rev=10
2021-07-13 12:28:14 +00:00

14 lines
472 B
Diff

--- src/providers/mod.rs.orig
+++ src/providers/mod.rs
@@ -130,8 +130,8 @@ fn write_ssh_keys(user: User, ssh_keys:
.chain_err(|| "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);
if !ssh_keys.is_empty() {