[bug] Fixing grub EFI install errors

Fixed grub efi install dirs error and also optdeps not being fetched
their dependencies
main
Joaquin 3 years ago
parent a6f026c65a
commit f3d1d45cce
Signed by: puly
GPG Key ID: 9E9299CD96C65EC6
  1. 3
      install
  2. 8
      koffe
  3. 4
      pi.is

@ -30,9 +30,8 @@ mkswap /dev/$pswap
swapon /dev/$pswap
pefi=$(whiptail --title "Select the partiton to install EFI to:" --menu "Select the partiton to install EFI to (no disk if you have legacy bios):" 16 78 10 "${parts[@]}" 3>&1 1>&2 2>&3 3>&-)
mkdir /mnt/boot
mkdir /mnt/boot/EFI
mkfs.fat -F32 /dev/$pefi
mount /dev/$pefi /mnt/boot/EFI
mount /dev/$pefi /mnt/boot/
extraparts=$(whiptail --inputbox "If you want to mount any other partition manually, enter the commands here like this: command 1 ; command 2 ; command 3" 0 0 0 3>&1 1>&2 2>&3 3>&-)
echo $extraparts > coms
bash coms

@ -86,6 +86,8 @@ fi
if [ $(whoami) == root ];
then
#updating the database is required for pacman to resolve the latest links to packages
pacman -Suy
mkdir /tmp/koffe/
mkdir /tmp/koffe/l/
mkdir /tmp/koffe/n/
@ -126,7 +128,7 @@ then
#ADD OPTIONAL DEPS TO INSTALL LIST
pactree -suo $app > /tmp/koffe/with_opt
pactree -su $app > /tmp/koffe/wout_opt
grep -Fxvf /tmp/koffe/wout_opt /tmp/koffe/with_opt >> /tmp/koffe/rootfs/airootfs/root/install.list
prog="$prog $(grep -Fxvf /tmp/koffe/wout_opt /tmp/koffe/with_opt | cut -d ':' -f 1 | cut -d '>' -f 1 | tr '\n' ' ')"
fi
wget -nc -i /tmp/koffe/l/$app -P /tmp/koffe/rootfs/airootfs/root/pkg/
fi
@ -152,9 +154,9 @@ then
#ADD OPTIONAL DEPS TO INSTALL LIST
pactree -suo $component > /tmp/koffe/with_opt
pactree -su $component > /tmp/koffe/wout_opt
grep -Fxvf /tmp/koffe/wout_opt /tmp/koffe/with_opt >> /tmp/koffe/rootfs/airootfs/root/install.list
prog="$prog $(grep -Fxvf /tmp/koffe/wout_opt /tmp/koffe/with_opt | cut -d ':' -f 1 | cut -d '>' -f 1 | tr '\n' ' ')"
fi
done
pacman -Spdd --noconfirm - < /tmp/koffe/grtree > /tmp/koffe/grlinks
wget -nc -i /tmp/koffe/grlinks -P /tmp/koffe/rootfs/airootfs/root/pkg/

@ -41,13 +41,13 @@ archit=$(whiptail --backtitle "Koffe" --title "Architecture selector" --menu "Ch
if [[ "$archit" == "64" ]]
then
mkdir /boot/EFI
grub-install --target=x86_64-efi --efi-directory=/boot/EFI
grub-install --target=x86_64-efi --efi-directory=/boot/
grub-mkconfig -o /boot/grub/grub.cfg
fi
if [[ "$archit" == "32" ]]
then
mkdir /boot/EFI
grub-install --target=i386-efi --efi-directory=/boot/EFI
grub-install --target=i386-efi --efi-directory=/boot/
grub-mkconfig -o /boot/grub/grub.cfg
fi
fi

Loading…
Cancel
Save