summaryrefslogtreecommitdiff
path: root/setup-alpine.in
diff options
context:
space:
mode:
authorNick Hanley <nicholasjhanley@gmail.com>2022-07-06 21:57:34 -0400
committerNick Hanley <nicholasjhanley@gmail.com>2022-07-06 21:57:34 -0400
commit619f3a2d4de92539542d627657271861b6721e22 (patch)
tree5aaf299721ab1a36a3588b07e6998b763977db4f /setup-alpine.in
parent481dfad3fe98a2da1f7c1a11c2f9ba525c95eb32 (diff)
downloadalpine-conf-619f3a2d4de92539542d627657271861b6721e22.zip
setup-alpine: persist root authorized_keys
Diffstat (limited to 'setup-alpine.in')
-rw-r--r--setup-alpine.in5
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