initrd-ssh: fix authorized_key generation with multiple keys

multiple entries should be separated by newline
This commit is contained in:
Jörg Thalheim 2016-11-16 14:17:42 +00:00
parent 8ef3eaeb4e
commit 7ad01f5f0c

@ -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}