From 95a2d38e00dc55cbdaa6a155333ed8216e96341a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <anarcat@debian.org> Date: Wed, 19 Feb 2020 15:44:24 -0500 Subject: [PATCH] go back to reviewing the interfaces configuration Normally, the --defaultinterfaces command *should* setup a proper file for us, including automatic config for eth0. Let's see if it works next time. --- tsa/howto/new-machine-hetzner-robot.mdwn | 52 ++++++++++++------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/tsa/howto/new-machine-hetzner-robot.mdwn b/tsa/howto/new-machine-hetzner-robot.mdwn index 9417d2df..48b630ed 100644 --- a/tsa/howto/new-machine-hetzner-robot.mdwn +++ b/tsa/howto/new-machine-hetzner-robot.mdwn @@ -100,32 +100,6 @@ which we'll use below. mkdir /target/boot mount "$BOOT_PARTITION" /target/boot - 4. Review the network configuration, since it will end up in the - installed instance: - - cat /target/etc/network/interfaces - - An example safe configuration is: - - auto lo - iface lo inet loopback - - allow-hotplug eth0 - iface eth0 inet dhcp - - The latter two lines usually need to be added as they are missing - from Hetzner rescue shells: - - cat >> /etc/network/interfaces <<EOF - - allow-hotplug eth0 - iface eth0 inet dhcp - EOF - - TODO: fix this in a post-install debootstrap hook, or in - grml-debootstrap already, see also [upstream issue 105](https://github.com/grml/grml-debootstrap/issues/105) and - [issue 136](https://github.com/grml/grml-debootstrap/issues/136). - 4. Install the system. This can be done with `grml-debootstrap` which will also configure grub, a root password and so on. This should get you started, assuming the formatted root disk is mounted on @@ -232,6 +206,32 @@ which we'll use below. chroot /target grub-install /dev/nvme1n1 + 12. Review the network configuration, since it will end up in the + installed instance: + + cat /target/etc/network/interfaces + + An example safe configuration is: + + auto lo + iface lo inet loopback + + allow-hotplug eth0 + iface eth0 inet dhcp + + The latter two lines usually need to be added as they are missing + from Hetzner rescue shells: + + cat >> /etc/network/interfaces <<EOF + + allow-hotplug eth0 + iface eth0 inet dhcp + EOF + + TODO: fix this in a post-install debootstrap hook, or in + grml-debootstrap already, see also [upstream issue 105](https://github.com/grml/grml-debootstrap/issues/105) and + [issue 136](https://github.com/grml/grml-debootstrap/issues/136). + 13. If any of those latter things changed, you need to regenerate the initramfs: -- GitLab