Deduplicate /etc/hosts pirogue entries.

This commit is contained in:
Cyril Brulebois 2024-07-20 07:55:57 +02:00
parent 9ede6bb93f
commit 0dd2b1a2c9

View File

@ -19,9 +19,7 @@ toast_me() {
rm -f $MNT/etc/ssh/ssh_host_* rm -f $MNT/etc/ssh/ssh_host_*
chroot $MNT systemctl enable ssh chroot $MNT systemctl enable ssh
# Change the hostname # Change the hostname
echo "127.0.0.1 pirogue" >> $MNT/etc/hosts
echo "127.0.0.1 pirogue.local pirogue" >> $MNT/etc/hosts echo "127.0.0.1 pirogue.local pirogue" >> $MNT/etc/hosts
echo "::1 pirogue" >> $MNT/etc/hosts
echo "::1 pirogue.local pirogue" >> $MNT/etc/hosts echo "::1 pirogue.local pirogue" >> $MNT/etc/hosts
echo "pirogue" > $MNT/etc/hostname echo "pirogue" > $MNT/etc/hostname
# Add PTS PPA # Add PTS PPA