Jelajahi Sumber

Add hosts content

Viktor Grahn 1 tahun lalu
induk
melakukan
53f83cb8ec
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      archInstall.sh

+ 4 - 1
archInstall.sh

@@ -117,7 +117,7 @@ function preChrootStep {
   mkswap -U clear --size $SWAPSIZE --file /mnt/swapfile >> $LOGFILE 2>&1 || exit $?
   swapon /mnt/swapfile >> $LOGFILE 2>&1 || exit $?
 
-  PACSTRAPPKGS="base linux linux-firmware linux-headers networkmanager efibootmgr vim sudo sed git lvm2 iwctl systemd-ukify"
+  PACSTRAPPKGS="base linux linux-firmware linux-headers networkmanager efibootmgr vim sudo sed git lvm2 iwd systemd-ukify"
 
   printf "Checking CPU manufacturer\n" | tee -a $LOGFILE
   CPU=$(lscpu | grep "^Vendor ID:" | awk '{ print $3 }')
@@ -155,6 +155,9 @@ function chrootStep {
 
   printf "Setting hostname to $HOSTNAME\n"
   echo "$HOSTNAME" > /etc/hostname
+  echo "127.0.0.1   localhost" >> /etc/hosts
+  echo "::1         localhost" >> /etc/hosts
+  echo "127.0.1.1   $HOSTNAME" >> /etc/hosts
 
   printf "Add wheel to sudoers\n"
   echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel