safe-chroot.sh 637 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # This a lazy and DANGEROUS way to install Arch.
  3. # I do not recommend this to other people, ONLY
  4. # do this if you exactly understand EVERY SINGLE
  5. # LINE of this bash script. You'll thank me later.
  6. passwd
  7. TZuser=$(cat tzfinal.tmp)
  8. ln -sf /usr/share/zoneinfo/$TZuser /etc/localtime
  9. hwclock --systohc
  10. echo "LANG=en_GB.UTF-8" >> /etc/locale.conf
  11. echo "en_GB.UTF-8 UTF-8" >> /etc/locale.gen
  12. locale-gen
  13. pacman --noconfirm --needed -S networkmanager
  14. systemctl enable NetworkManager
  15. DRIVE=$(cat drive)
  16. pacman --noconfirm --needed -S grub && grub-install --target=i386-pc /dev/${DRIVE} && grub-mkconfig -o /boot/grub/grub.cfg