Skip to content
Snippets Groups Projects
Commit a51aaa98 authored by Peter Palfrader's avatar Peter Palfrader
Browse files

iterate on new-machine-hetzner-robot.mdwn

parent a99ea3a6
No related branches found
No related tags found
No related merge requests found
...@@ -112,6 +112,8 @@ which we'll use below. ...@@ -112,6 +112,8 @@ which we'll use below.
--password "$ROOTPASSWORD" \ --password "$ROOTPASSWORD" \
--remove-configs --defaultinterfaces --remove-configs --defaultinterfaces
umount /target/run/udev /target/run
4. Once the bootstrapping is complete, you still need to make sure 4. Once the bootstrapping is complete, you still need to make sure
the system can boot as, the above doesn't (unfortunately) the system can boot as, the above doesn't (unfortunately)
configure everything for you. First, make a reasonable etc/fstab: configure everything for you. First, make a reasonable etc/fstab:
...@@ -129,25 +131,25 @@ which we'll use below. ...@@ -129,25 +131,25 @@ which we'll use below.
repository. repository.
cd /target && bash /root/tsa-misc/scripts/tor-install-luks-setup cd /target && bash /root/tsa-misc/scripts/tor-install-luks-setup
5. Review the crypto configuration: 6. Review the crypto configuration:
cat /target/etc/crypttab cat /target/etc/crypttab
6. mount the helper filesystems once more 7. mount the helper filesystems once more
for fs in dev proc run sys ; do for fs in dev proc run sys ; do
mount -o bind /$fs "/target/$fs"; mount -o bind /$fs "/target/$fs";
done done
7. Do the same with the RAID configuration, probably with something like: 8. Do the same with the RAID configuration, probably with something like:
chroot /target sh -c "/usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf" chroot /target sh -c "/usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf"
8. install grub on any secondary disk, for instance 9. install grub on any secondary disk, for instance
chroot /target grub-install /dev/nvme1n1 chroot /target grub-install /dev/nvme1n1
9. Review the network configuration: 10. Review the network configuration:
cat /target/etc/network/interfaces cat /target/etc/network/interfaces
...@@ -158,19 +160,19 @@ which we'll use below. ...@@ -158,19 +160,19 @@ which we'll use below.
allow-hotplug eth0 allow-hotplug eth0
iface eth0 inet dhcp iface eth0 inet dhcp
10. Copy paste your key into the root's authorized keys, just to make 11. Copy paste your key into the root's authorized keys, just to make
sure you can login: sure you can login:
mkdir -p /target/root/.ssh/ && mkdir -p /target/root/.ssh/ &&
cp /root/.ssh/authorized_keys /target/root/.ssh/authorized_keys cp /root/.ssh/authorized_keys /target/root/.ssh/authorized_keys
11. If any of those latter things changed, you need to regenerate the 12. If any of those latter things changed, you need to regenerate the
initramfs: initramfs:
chroot /target update-initramfs -u chroot /target update-initramfs -u
chroot /target update-grub chroot /target update-grub
12. umount things 13. umount things
umount /target/run/udev umount /target/run/udev
for fs in dev proc run sys ; do for fs in dev proc run sys ; do
umount /target/$fs umount /target/$fs
...@@ -178,15 +180,15 @@ which we'll use below. ...@@ -178,15 +180,15 @@ which we'll use below.
umount /target/boot umount /target/boot
cd / && umount /target cd / && umount /target
13. close things 14. close things
vgchange -a n vgchange -a n
cryptsetup luksClose cpv_nvme cryptsetup luksClose cpv_nvme
for i in /dev/md/*; do mdadm --stop $i; done for i in /dev/md/*; do mdadm --stop $i; done
14. Document the LUKS passphrase and root password in `tor-passwords` 15. Document the LUKS passphrase and root password in `tor-passwords`
15. Cross fingers and reboot: 16. Cross fingers and reboot:
reboot reboot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment