set hostname to toes

This commit is contained in:
Pat Nakajima 2026-05-21 00:33:52 +00:00
parent df2da8cfab
commit 0fa51a3f1f

View File

@ -63,6 +63,16 @@ apt-get install -y \
locale-gen en_US.UTF-8 locale-gen en_US.UTF-8
update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
echo "====> setting hostname"
printf 'toes\n' >/etc/hostname
if grep -q '^127\.0\.1\.1' /etc/hosts; then
sed -i 's/^127\.0\.1\.1.*/127.0.1.1 toes/' /etc/hosts
else
printf '127.0.1.1 toes\n' >>/etc/hosts
fi
mkdir -p /etc/cloud/cloud.cfg.d
printf 'preserve_hostname: true\n' >/etc/cloud/cloud.cfg.d/99-preserve-hostname.cfg
echo "====> configuring bluetooth for Matter commissioning" echo "====> configuring bluetooth for Matter commissioning"
mkdir -p /etc/systemd/system/bluetooth.service.d mkdir -p /etc/systemd/system/bluetooth.service.d
cat >/etc/systemd/system/bluetooth.service.d/10-matter.conf <<'EOBT' cat >/etc/systemd/system/bluetooth.service.d/10-matter.conf <<'EOBT'