From 09a57ac0b514b262ebb9bb345f39a3342281c996 Mon Sep 17 00:00:00 2001 From: Francesco Basile <59255877+parmigggiana@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:11:58 +0200 Subject: [PATCH] fix: hostname --- chroot_scripts/00-hostname_setup.sh | 4 ++-- chroot_scripts/99-asd.sh | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/chroot_scripts/00-hostname_setup.sh b/chroot_scripts/00-hostname_setup.sh index 1654ee3..e1ed102 100755 --- a/chroot_scripts/00-hostname_setup.sh +++ b/chroot_scripts/00-hostname_setup.sh @@ -11,8 +11,8 @@ echo "$MISO_HOSTNAME" >/etc/hostname # the inside and is absolutely necessary to be set for sudo # to determine that localhost is localhost cat </etc/hosts -127.0.0.1 localhost $HOSTNAME $MISO_HOSTNAME -::1 localhost ip6-localhost ip6-loopback $HOSTNAME $MISO_HOSTNAME +127.0.0.1 localhost $MISO_HOSTNAME $MISO_HOSTNAME +::1 localhost ip6-localhost ip6-loopback $MISO_HOSTNAME $MISO_HOSTNAME ff02::1 ip6-allnodes ff02::2 ip6-allrouters EOF diff --git a/chroot_scripts/99-asd.sh b/chroot_scripts/99-asd.sh index b0bb611..9784bf4 100644 --- a/chroot_scripts/99-asd.sh +++ b/chroot_scripts/99-asd.sh @@ -3,15 +3,15 @@ echo "=== Final cleanup ===" # Remove unused packages -apt-get autoremove -y +#apt-get autoremove -y # Clean the cache -apt-get clean -y -rm -rf /var/lib/apt/lists/* +#apt-get clean -y +#rm -rf /var/lib/apt/lists/* echo "=== Set hostname part 2 ===" -cat </etc/hosts -127.0.0.1 localhost $MISO_HOSTNAME -::1 localhost ip6-localhost ip6-loopback $MISO_HOSTNAME -ff02::1 ip6-allnodes -ff02::2 ip6-allrouters -EOF \ No newline at end of file +#cat </etc/hosts +#127.0.0.1 localhost $MISO_HOSTNAME +#::1 localhost ip6-localhost ip6-loopback $MISO_HOSTNAME +#ff02::1 ip6-allnodes +#ff02::2 ip6-allrouters +#EOF \ No newline at end of file