fixed issue with wrong automated refind config

dialog
amy 3 years ago
parent 3643a1d3ad
commit 456ad041f9

@ -316,7 +316,10 @@ echo "# Enabled by Crystalinstall (citrine)" >> /mnt/etc/sudoers
echo "%wheel ALL=(ALL) ALL" >> /mnt/etc/sudoers
if [[ "$EFI" == "yes" ]]; then
root="$(findmnt -n -o SOURCE / | awk 'BEGIN { FS = "/" }; { print $3 }')"
arch-chroot /mnt refind-install
echo '"Crystal Linux" "rw root=/dev/placeholder"' > /mnt/boot/refind_linux.conf
sed -i "s/placeholder/$root/" /mnt/boot/refind_linux.conf
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 syslinux-install_update -i -a -m

@ -0,0 +1 @@
"Crystal Linux" "rw root=/dev/sdc"
Loading…
Cancel
Save