summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@higgsboson.tk>2016-11-18 23:16:44 +0100
committerGitHub <noreply@github.com>2016-11-18 23:16:44 +0100
commitc54d2860dc78c18d45c99aff135134cf5e0250ba (patch)
tree03ab7e9f1068500bf20c279c7de8ea9ecf8a5dd5 /nixos/modules
parent21a1611269f0094045df7b7f2063e808706cfdbd (diff)
parent7ad01f5f0c570e754c471db1d9d1c697f1292eca (diff)
downloadnixlib-c54d2860dc78c18d45c99aff135134cf5e0250ba.tar
nixlib-c54d2860dc78c18d45c99aff135134cf5e0250ba.tar.gz
nixlib-c54d2860dc78c18d45c99aff135134cf5e0250ba.tar.bz2
nixlib-c54d2860dc78c18d45c99aff135134cf5e0250ba.tar.lz
nixlib-c54d2860dc78c18d45c99aff135134cf5e0250ba.tar.xz
nixlib-c54d2860dc78c18d45c99aff135134cf5e0250ba.tar.zst
nixlib-c54d2860dc78c18d45c99aff135134cf5e0250ba.zip
Merge pull request #20469 from Mic92/initrd-ssh
initrd-ssh: fix authorized_key generation with multiple keys
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/system/boot/initrd-ssh.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/initrd-ssh.nix b/nixos/modules/system/boot/initrd-ssh.nix
index a8c7d4b3ee5e..59ecaf8d5a6d 100644
--- a/nixos/modules/system/boot/initrd-ssh.nix
+++ b/nixos/modules/system/boot/initrd-ssh.nix
@@ -122,7 +122,7 @@ in
 
       mkdir -p /root/.ssh
       ${concatStrings (map (key: ''
-        echo -n ${escapeShellArg key} >> /root/.ssh/authorized_keys
+        echo ${escapeShellArg key} >> /root/.ssh/authorized_keys
       '') cfg.authorizedKeys)}
 
       dropbear -s -j -k -E -m -p ${toString cfg.port}