mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-12-26 15:59:24 -05:00
Merge branch 'patch-1' of https://github.com/WestleyArgentum/qubes-doc into WestleyArgentum-patch-1
This commit is contained in:
commit
1dc3de6393
@ -86,8 +86,9 @@ set -e -o pipefail
|
|||||||
# Set a random hostname for a VM session.
|
# Set a random hostname for a VM session.
|
||||||
#
|
#
|
||||||
# Instructions:
|
# Instructions:
|
||||||
# 1. This file must be placed and made executable as the file /etc/network/if-pre-up.d/00_hostname (owner: root) inside the template VM of your
|
# 1. This file must be placed and made executable (owner: root) inside the template VM of your network VM such that it will be run before your hostname is sent over a network.
|
||||||
# network VM.
|
# In a Fedora template, use `/etc/NetworkManager/dispatcher.d/pre-up.d/00_hostname`.
|
||||||
|
# In a Debian template, use `/etc/network/if-pre-up.d/00_hostname`.
|
||||||
# 2. Execute `sudo touch /etc/hosts.lock` inside the template VM of your network VM.
|
# 2. Execute `sudo touch /etc/hosts.lock` inside the template VM of your network VM.
|
||||||
# 3. Execute inside your network VM:
|
# 3. Execute inside your network VM:
|
||||||
# `sudo bash -c 'mkdir -p /rw/config/protected-files.d/ && echo -e "/etc/hosts\n/etc/hostname" > /rw/config/protected-files.d/protect_hostname.txt'`
|
# `sudo bash -c 'mkdir -p /rw/config/protected-files.d/ && echo -e "/etc/hosts\n/etc/hostname" > /rw/config/protected-files.d/protect_hostname.txt'`
|
||||||
|
Loading…
Reference in New Issue
Block a user