[ONE images] do not use hostnamectl in chroot (ubuntu build script)

This commit is contained in:
fnux 2024-04-02 13:40:41 +02:00
parent 2659ec10c9
commit 1ee1e66155
No known key found for this signature in database
GPG key ID: 4502C902C00A1E12

View file

@ -140,7 +140,7 @@ EOF
run_root rm -f /etc/machine-id
run_root touch /etc/machine-id
rm -f /var/lib/systemd/random-seed
run_root hostnamectl set-hostname ubuntu
echo "ubuntu" > /mnt/etc/hostname
# Remove temporary files and reclaim freed disk space.
run_root apt-get clean