aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2022-12-25 00:43:01 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2022-12-25 00:43:01 +0530
commit917953b81958778c8c361c282c0b1320bb305014 (patch)
treeaf359d047b3f9835d2642de146dea5d6a7a57d37
parentd14310eb3b3ac02b56db7d7db0039b8c73345f00 (diff)
downloadarch-magic-917953b81958778c8c361c282c0b1320bb305014.tar.gz
arch-magic-917953b81958778c8c361c282c0b1320bb305014.tar.bz2
arch-magic-917953b81958778c8c361c282c0b1320bb305014.zip
changes
-rwxr-xr-xarch_install.sh23
1 files changed, 12 insertions, 11 deletions
diff --git a/arch_install.sh b/arch_install.sh
index 579967a..0b24ab6 100755
--- a/arch_install.sh
+++ b/arch_install.sh
@@ -13,12 +13,12 @@ cfdisk $drive
echo "Enter the linux partition: "
read partition
mkfs.ext4 $partition
-read -p "Did you also create efi partition? [y/n]" answer
-if [[ $answer = y ]] ; then
- echo "Enter EFI partition: "
- read efipartition
- mkfs.vfat -F 32 $efipartition
-fi
+#read -p "Did you also create efi partition? [y/n]" answer
+#if [[ $answer = y ]] ; then
+# echo "Enter EFI partition: "
+# read efipartition
+# mkfs.vfat -F 32 $efipartition
+#fi
mount $partition /mnt
pacstrap /mnt base base-devel linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
@@ -46,11 +46,12 @@ echo "127.0.1.1 $hostname.localdomain $hostname" >> /etc/hosts
mkinitcpio -P
passwd
pacman --noconfirm -S grub efibootmgr os-prober
-echo "Enter EFI partition: "
-read efipartition
-mkdir /boot/efi
-mount $efipartition /boot/efi
-grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
+#echo "Enter EFI partition: "
+#read efipartition
+#mkdir /boot/efi
+#mount $efipartition /boot/efi
+#grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
+grub-install --target=i386-pc /dev/sda
sed -i 's/quiet/pci=noaer/g' /etc/default/grub
sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=0/g' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg