From 1ee1e661555aca4d163329a6c7945a2747849098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Tue, 2 Apr 2024 13:40:41 +0200 Subject: [PATCH] [ONE images] do not use hostnamectl in chroot (ubuntu build script) --- opennebula-images/ubuntu-build-opennebula-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opennebula-images/ubuntu-build-opennebula-image.sh b/opennebula-images/ubuntu-build-opennebula-image.sh index 223ce1b..b9f64de 100755 --- a/opennebula-images/ubuntu-build-opennebula-image.sh +++ b/opennebula-images/ubuntu-build-opennebula-image.sh @@ -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