From 46e82d88934258e809e02edde4fbbdc431bc4605 Mon Sep 17 00:00:00 2001 From: 3hhh Date: Wed, 15 Jan 2020 09:58:35 +0100 Subject: [PATCH] make sure the hostname is set --- external/privacy-guides/anonymizing-your-mac-address.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/external/privacy-guides/anonymizing-your-mac-address.md b/external/privacy-guides/anonymizing-your-mac-address.md index ea7a688a..00bc8160 100644 --- a/external/privacy-guides/anonymizing-your-mac-address.md +++ b/external/privacy-guides/anonymizing-your-mac-address.md @@ -97,6 +97,8 @@ set -e -o pipefail if [ -f "/rw/config/protected-files.d/protect_hostname.txt" ] && rand="$RANDOM" && mv "/etc/hosts.lock" "/etc/hosts.lock.$rand" ; then name="PC-$rand" echo "$name" > /etc/hostname + hostname "$name" + #NOTE: NetworkManager may set it again after us based on DHCP or /etc/hostname, cf. `man NetworkManager.conf` @hostname-mode #from /usr/lib/qubes/init/qubes-early-vm-config.sh if [ -e /etc/debian_version ]; then