Merge pull request #23 from nix-community/debian-workaround
kexec: fix authorized_keys on debian
This commit is contained in:
commit
3d373f7cf4
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@
|
|||
mkdir -p initrd/ssh
|
||||
pushd initrd
|
||||
if [ -e /root/.ssh/authorized_keys ]; then
|
||||
cat /root/.ssh/authorized_keys >> ssh/authorized_keys
|
||||
# workaround for debian shenanigans
|
||||
grep -o '\(ssh-[^ ]* .*\)' /root/.ssh/authorized_keys >> ssh/authorized_keys
|
||||
fi
|
||||
if [ -e /etc/ssh/authorized_keys.d/root ]; then
|
||||
cat /etc/ssh/authorized_keys.d/root >> ssh/authorized_keys
|
||||
|
|
Loading…
Reference in a new issue