From d24da2acefbdd44823f1fa9b2f80bc39d0edfa7a Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 5 Oct 2022 13:01:46 -0700 Subject: [PATCH] fix hostname setting --- userspace/files/NetworkManager.conf | 1 + userspace/usr/comma/set-hostname.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/userspace/files/NetworkManager.conf b/userspace/files/NetworkManager.conf index f2b5d98..86b0bef 100644 --- a/userspace/files/NetworkManager.conf +++ b/userspace/files/NetworkManager.conf @@ -1,6 +1,7 @@ [main] plugins=ifupdown,keyfile dns=systemd-resolved +hostname-mode=none [ifupdown] managed=true diff --git a/userspace/usr/comma/set-hostname.sh b/userspace/usr/comma/set-hostname.sh index 7b9d228..46b4b2a 100755 --- a/userspace/usr/comma/set-hostname.sh +++ b/userspace/usr/comma/set-hostname.sh @@ -3,4 +3,4 @@ set -e SERIAL="$(cat /proc/cmdline | sed -e 's/^.*androidboot.serialno=//' -e 's/ .*$//')" echo "serial: '$SERIAL'" -nmcli general hostname "tici-$SERIAL" +hostnamectl set-hostname --transient "tici-$SERIAL"