summary refs log tree commit diff
path: root/nixos/modules/system/boot/initrd-ssh.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@higgsboson.tk>2016-11-16 14:17:42 +0000
committerJörg Thalheim <joerg@higgsboson.tk>2016-11-16 14:47:37 +0000
commit7ad01f5f0c570e754c471db1d9d1c697f1292eca (patch)
tree486c5041f60d6d11aa8e053ac1f771a6043607b5 /nixos/modules/system/boot/initrd-ssh.nix
parent8ef3eaeb4e531929ec29a880cb4c67f790e5eb70 (diff)
downloadnixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar
nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar.gz
nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar.bz2
nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar.lz
nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar.xz
nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar.zst
nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.zip
initrd-ssh: fix authorized_key generation with multiple keys
multiple entries should be separated by newline
Diffstat (limited to 'nixos/modules/system/boot/initrd-ssh.nix')
-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 a8c7d4b3ee5..59ecaf8d5a6 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}