|
@@ -11,7 +11,11 @@ dialog --defaultno --title "WARNING!" --yesno "Do only run this script if you're
|
|
|
|
|
|
dialog --no-cancel --inputbox "Enter the hostname." 10 60 2>comp
|
|
dialog --no-cancel --inputbox "Enter the hostname." 10 60 2>comp
|
|
|
|
|
|
-dialog --no-cancel --inputbox "Enter the drive you want do install Arch on.\n\n$(lsblk -d | sed 's/0 disk/0 disk\\n/;s/POINT/POINT\\n/')" 10 60 2>drive
|
|
|
|
|
|
+clear
|
|
|
|
+lsblk -d | sed 's/0 disk/0 disk\\n/;s/POINT/POINT\\n/'
|
|
|
|
+read -p "Press any key to continue"
|
|
|
|
+
|
|
|
|
+dialog --no-cancel --inputbox "Enter the drive you want do install Arch on." 10 60 2>drive
|
|
|
|
|
|
dialog --defaultno --title "Time Zone select" --yesno "Do you want use the default time zone(Europe/Zurich)?.\n\nPress no for select your own time zone" 10 60 && echo "Europe/Zurich" > tz.tmp || tzselect > tz.tmp
|
|
dialog --defaultno --title "Time Zone select" --yesno "Do you want use the default time zone(Europe/Zurich)?.\n\nPress no for select your own time zone" 10 60 && echo "Europe/Zurich" > tz.tmp || tzselect > tz.tmp
|
|
|
|
|
|
@@ -22,10 +26,12 @@ DRIVE=$(cat drive)
|
|
|
|
|
|
timedatectl set-ntp true
|
|
timedatectl set-ntp true
|
|
|
|
|
|
-cat <<EOF | fdisk /dev/${DRIVE}
|
|
|
|
|
|
+cat <<EOF | fdisk -W always /dev/${DRIVE}
|
|
|
|
+p
|
|
g
|
|
g
|
|
n
|
|
n
|
|
|
|
|
|
|
|
+
|
|
+1024M
|
|
+1024M
|
|
t
|
|
t
|
|
4
|
|
4
|
|
@@ -36,12 +42,15 @@ n
|
|
t
|
|
t
|
|
2
|
|
2
|
|
19
|
|
19
|
|
|
|
+p
|
|
n
|
|
n
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
t
|
|
t
|
|
3
|
|
3
|
|
20
|
|
20
|
|
|
|
+p
|
|
w
|
|
w
|
|
EOF
|
|
EOF
|
|
partprobe
|
|
partprobe
|
|
@@ -53,14 +62,14 @@ mount /dev/${DRIVE}3 /mnt
|
|
|
|
|
|
pacman -Sy --noconfirm archlinux-keyring
|
|
pacman -Sy --noconfirm archlinux-keyring
|
|
|
|
|
|
-pacstrap /mnt base base-devel
|
|
|
|
|
|
+pacstrap /mnt base base-devel linux linux-firmware networkmanager rsync
|
|
|
|
|
|
genfstab -U /mnt >> /mnt/etc/fstab
|
|
genfstab -U /mnt >> /mnt/etc/fstab
|
|
cat tz.tmp > /mnt/tzfinal.tmp
|
|
cat tz.tmp > /mnt/tzfinal.tmp
|
|
rm tz.tmp
|
|
rm tz.tmp
|
|
mv drive /mnt
|
|
mv drive /mnt
|
|
mv comp /mnt/etc/hostname
|
|
mv comp /mnt/etc/hostname
|
|
-curl https://raw.githubusercontent.com/noahvogt/norisa/master/chroot.sh > /mnt/chroot.sh && arch-chroot /mnt bash chroot.sh && rm /mnt/chroot.sh
|
|
|
|
|
|
+curl https://raw.githubusercontent.com/noahvogt/norisa/main/chroot.sh > /mnt/chroot.sh && arch-chroot /mnt bash chroot.sh && rm /mnt/chroot.sh
|
|
|
|
|
|
dialog --defaultno --title "Final Qs" --yesno "Reboot computer?" 5 30 && reboot
|
|
dialog --defaultno --title "Final Qs" --yesno "Reboot computer?" 5 30 && reboot
|
|
dialog --defaultno --title "Final Qs" --yesno "Return to chroot environment?" 6 30 && arch-chroot /mnt
|
|
dialog --defaultno --title "Final Qs" --yesno "Return to chroot environment?" 6 30 && arch-chroot /mnt
|