diff options
author | Nick Hanley <nicholasjhanley@gmail.com> | 2022-07-06 21:57:34 -0400 |
---|---|---|
committer | Nick Hanley <nicholasjhanley@gmail.com> | 2022-07-06 21:57:34 -0400 |
commit | 619f3a2d4de92539542d627657271861b6721e22 (patch) | |
tree | 5aaf299721ab1a36a3588b07e6998b763977db4f /setup-alpine.in | |
parent | 481dfad3fe98a2da1f7c1a11c2f9ba525c95eb32 (diff) | |
download | alpine-conf-619f3a2d4de92539542d627657271861b6721e22.zip |
setup-alpine: persist root authorized_keys
Diffstat (limited to 'setup-alpine.in')
-rw-r--r-- | setup-alpine.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/setup-alpine.in b/setup-alpine.in index e1ab594..50de2f1 100644 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -237,7 +237,12 @@ for i in "$ROOT"home/*; do lbu add $i fi done + setup-sshd ${SSHDOPTS} +root_keys="$ROOT"/root/.ssh/authorized_keys +if [ -f "$root_keys" ]; then + lbu add "$root_keys" +fi if is_xen_dom0; then setup-xen-dom0 |