refind? more like refound (Replaced refind and syslinux with grub)

pull/3/head
Amy 3 years ago
parent d82d04ef5c
commit a484c325fb
No known key found for this signature in database
GPG Key ID: C642EA4B2F4096BE

@ -246,10 +246,10 @@ fi
if [[ "$EFI" == "yes" ]]; then if [[ "$EFI" == "yes" ]]; then
inf "Installing EFI support packages" inf "Installing EFI support packages"
crystalstrap /mnt efibootmgr refind crystalstrap /mnt efibootmgr grub
else else
inf "Installing Syslinux bootloader" inf "Installing Syslinux bootloader"
crystalstrap /mnt syslinux crystalstrap /mnt grub
fi fi
genfstab -U /mnt > /mnt/etc/fstab genfstab -U /mnt > /mnt/etc/fstab
@ -357,14 +357,12 @@ echo "# Enabled by Crystalinstall (citrine)" >> /mnt/etc/sudoers
echo "%wheel ALL=(ALL) ALL" >> /mnt/etc/sudoers echo "%wheel ALL=(ALL) ALL" >> /mnt/etc/sudoers
if [[ "$EFI" == "yes" ]]; then if [[ "$EFI" == "yes" ]]; then
root="$(findmnt -n -o SOURCE /mnt | awk 'BEGIN { FS = "/" }; { print $3 }' | sed "s/\[//")" arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=crystal --removable
arch-chroot /mnt refind-install
echo '"Crystal Linux" "rw root=/dev/placeholder rootflags=subvol=@"' > /mnt/boot/refind_linux.conf
sed -i "s/placeholder/$root/" /mnt/boot/refind_linux.conf
else else
arch-chroot /mnt curl https://git.getcryst.al/crystal/Syslinux_install_script/raw/branch/master/syslinux-install_update -o /usr/bin/syslinux-install_update arch-chroot /mnt grub-install --target=i386-pc ${DISK}1
arch-chroot /mnt syslinux-install_update -i -a -m
fi fi
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg
arch-chroot /mnt systemctl enable NetworkManager arch-chroot /mnt systemctl enable NetworkManager
arch-chroot pacman-key --init arch-chroot pacman-key --init

Loading…
Cancel
Save