From 6a4a980c00bdd05a2eb22b0b03ee89ffa1987804 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <anarcat@debian.org>
Date: Wed, 22 Jan 2020 16:48:06 -0500
Subject: [PATCH] move up ssh key init in the hope of reducing initramfs
 reloads

---
 tsa/howto/new-machine-hetzner-robot.mdwn | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/tsa/howto/new-machine-hetzner-robot.mdwn b/tsa/howto/new-machine-hetzner-robot.mdwn
index 197eff20..2c102e66 100644
--- a/tsa/howto/new-machine-hetzner-robot.mdwn
+++ b/tsa/howto/new-machine-hetzner-robot.mdwn
@@ -130,7 +130,13 @@ which we'll use below.
         tmpfs /tmp tmpfs defaults,size=512m 0 0
         EOF
 
- 5. setup dropbear-initramfs to unlock the filesystem on boot. this
+ 6. Copy paste your key into the root's authorized keys, just to make
+    sure you can login:
+
+        mkdir -p /target/root/.ssh/ &&
+        cp /root/.ssh/authorized_keys /target/root/.ssh/authorized_keys
+
+ 7. setup dropbear-initramfs to unlock the filesystem on boot. this
     can be done with the `tor-install-luks-setup` in the `tsa-misc`
     repository.
 
@@ -167,12 +173,6 @@ which we'll use below.
         allow-hotplug eth0
         iface eth0 inet dhcp
 
- 11. Copy paste your key into the root's authorized keys, just to make
-    sure you can login:
-
-        mkdir -p /target/root/.ssh/ &&
-        cp /root/.ssh/authorized_keys /target/root/.ssh/authorized_keys
-
  12. If any of those latter things changed, you need to regenerate the
     initramfs:
 
-- 
GitLab