mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-04-07 15:23:56 +08:00
fix hostname setting
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
[main]
|
||||
plugins=ifupdown,keyfile
|
||||
dns=systemd-resolved
|
||||
hostname-mode=none
|
||||
|
||||
[ifupdown]
|
||||
managed=true
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user