summaryrefslogtreecommitdiffstats
path: root/arch-install
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-02-17 19:05:49 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2020-02-17 19:05:49 +0100
commit6c5f84e4b1ed243e59b8f5ac32e4ade0246f2c5e (patch)
treed862954a3e4b347227173bbea0b772ab180c6cc2 /arch-install
parent249fc3c9a06247e56d078538f20dd67c898126b4 (diff)
downloadbin-6c5f84e4b1ed243e59b8f5ac32e4ade0246f2c5e.zip
bin-6c5f84e4b1ed243e59b8f5ac32e4ade0246f2c5e.tar.gz
add arch-fix[0-1].sh
Diffstat (limited to 'arch-install')
-rwxr-xr-xarch-install/arch-fix-0.sh21
-rwxr-xr-xarch-install/arch-fix-1.sh10
2 files changed, 31 insertions, 0 deletions
diff --git a/arch-install/arch-fix-0.sh b/arch-install/arch-fix-0.sh
new file mode 100755
index 0000000..65b30bf
--- /dev/null
+++ b/arch-install/arch-fix-0.sh
@@ -0,0 +1,21 @@
+#! /bin/bash
+
+modprobe efivarfs
+mount -t efivarfs efivarfs /sys/firmware/efi/efivars
+
+parted /dev/sda set 1 bios_grub on
+
+echo "MOUNT"
+mount /dev/sda2 /mnt
+mount /dev/sda1 /mnt/boot
+mount /dev/sda3 /mnt/home
+
+echo "SWAPFS"
+dd if=/dev/zero of=/mnt/swapfile bs=1M count=512 || exit 1
+chmod 600 /mnt/swapfile || exit 1
+mkswap /mnt/swapfile || exit 1
+swapon /mnt/swapfile || exit 1
+
+genfstab -U -p /mnt >> /mnt/etc/fstab2
+
+arch-chroot /mnt
diff --git a/arch-install/arch-fix-1.sh b/arch-install/arch-fix-1.sh
new file mode 100755
index 0000000..8eea94f
--- /dev/null
+++ b/arch-install/arch-fix-1.sh
@@ -0,0 +1,10 @@
+#! /bin/bash
+
+echo "PACMAN"
+pacman-db-upgrade
+pacman -Syu
+pacman -S --noconfirm grub efibootmgr mkinitcpio linux linux-firmware
+
+echo "GRUB"
+grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub_uefi --recheck
+grub-mkconfig -o /boot/grub/grub.cfg