Skip to content

Commit

Permalink
fix: hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
parmigggiana committed Sep 27, 2024
1 parent b81ca06 commit 09a57ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions chroot_scripts/00-hostname_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF >/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
Expand Down
18 changes: 9 additions & 9 deletions chroot_scripts/99-asd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF >/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
#cat <<EOF >/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

0 comments on commit 09a57ac

Please sign in to comment.