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 <rlaager@wiktel.com>
This commit is contained in:
Richard Laager
2021-12-12 14:22:37 -06:00
parent a90b19b0f7
commit a408cc2d67
4 changed files with 8 additions and 4 deletions

View File

@@ -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

View File

@@ -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