Skip to content

Commit

Permalink
Debian/Ubuntu: Set hostname in Live environment
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rlaager committed Dec 12, 2021
1 parent a90b19b commit a408cc2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/Getting Started/Debian/Debian Buster Root on ZFS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a408cc2

Please sign in to comment.