From a408cc2d67d9c86650d60180968c240d7cb42cb3 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Sun, 12 Dec 2021 14:22:37 -0600 Subject: [PATCH] Debian/Ubuntu: Set hostname in Live environment This ensures that the Live hostname does not leak into e.g. OpenSSH server keys. It's not a huge deal either way, but this is nicer. Closes #158 Thanks: anarcat Signed-off-by: Richard Laager --- docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst | 3 ++- docs/Getting Started/Debian/Debian Buster Root on ZFS.rst | 3 ++- .../Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst | 3 ++- docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst b/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst index b9b92c5..e69a3d6 100644 --- a/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst +++ b/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst @@ -536,7 +536,8 @@ Step 4: System Configuration Replace ``HOSTNAME`` with the desired hostname:: - echo HOSTNAME > /mnt/etc/hostname + hostname HOSTNAME + hostname > /mnt/etc/hostname vi /mnt/etc/hosts .. code-block:: text diff --git a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst index 770469f..0bbc2a1 100644 --- a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst +++ b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst @@ -550,7 +550,8 @@ Step 4: System Configuration Replace ``HOSTNAME`` with the desired hostname:: - echo HOSTNAME > /mnt/etc/hostname + hostname HOSTNAME + hostname > /mnt/etc/hostname vi /mnt/etc/hosts .. code-block:: text diff --git a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst index 5a8817b..f5e0492 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst @@ -561,7 +561,8 @@ Step 4: System Configuration Replace ``HOSTNAME`` with the desired hostname:: - echo HOSTNAME > /mnt/etc/hostname + hostname HOSTNAME + hostname > /mnt/etc/hostname vi /mnt/etc/hosts .. code-block:: text diff --git a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst index ae64ea8..f36c27f 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst @@ -672,7 +672,8 @@ Step 4: System Configuration Replace ``HOSTNAME`` with the desired hostname:: - echo HOSTNAME > /mnt/etc/hostname + hostname HOSTNAME + hostname > /mnt/etc/hostname vi /mnt/etc/hosts .. code-block:: text