summaryrefslogtreecommitdiff
path: root/abi
diff options
context:
space:
mode:
authorRafael Marçalo <raroma09@gmail.com>2023-06-09 02:59:39 +0100
committerRafael Marçalo <raroma09@gmail.com>2023-06-09 02:59:39 +0100
commitfa8fe3f770ac0e5a5f9ecabf9119f2681cf05386 (patch)
treea2003e057dcf1e79d39dc0b8b54a6738af858929 /abi
parentc638943660d0ed85ef22540e17282260ae920896 (diff)
Fixed arch repos line and added EFI partition pathHEADmaster
Diffstat (limited to 'abi')
-rwxr-xr-xabi11
1 files changed, 7 insertions, 4 deletions
diff --git a/abi b/abi
index e4186f6..fc8b254 100755
--- a/abi
+++ b/abi
@@ -504,9 +504,12 @@ if [ "$EXTRA" != "N" ] && [ "$EXTRA" != "n" ]; then
$CHROOTC "grub-mkconfig -o /boot/grub/grub.cfg"
;;
2)
- $CHROOTC "pacman --noconfirm --needed -S efibootmgr"
- $CHROOTC "grub-install --target=x86_46-efi /dev/$SDX"
- $CHROOTC "grub-mkconfig -o /boot/grub/grub.cfg"
+ printf "Insert your EFI partition path\n-> " && read -r EFI && clear
+ if [ "$EFI" != "N" ] && [ "$EFI" != "n" ]; then
+ $CHROOTC "pacman --noconfirm --needed -S efibootmgr"
+ $CHROOTC "grub-install --target=x86_46-efi --efi-directory=$EFI /dev/$SDX"
+ $CHROOTC "grub-mkconfig -o /boot/grub/grub.cfg"
+ fi
;;
*)
$CHROOTC "grub-install /dev/$SDX"
@@ -592,7 +595,7 @@ else
printf "\n[world-debug]\nInclude = /etc/pacman.d/mirrorlist-debug" >> /mnt/etc/pacman.conf
printf "\n[galaxy-debug]\nInclude = /etc/pacman.d/mirrorlist-debug" >> /mnt/etc/pacman.conf
printf "\n[lib32-debug]\nInclude = /etc/pacman.d/mirrorlist-debug" >> /mnt/etc/pacman.conf
- printf "Server = https://debuginfod.artixlinux.org/\$repo/os/\$arch" >> >> /mnt/etc/pacman.d/mirrorlist-debug
+ printf "Server = https://debuginfod.artixlinux.org/\$repo/os/\$arch" >> /mnt/etc/pacman.d/mirrorlist-debug
$CHROOTC "pacman --needed --noconfirm -Syu"
fi
fi