Merge branch 'main' into 'main'

Make it actually work again

See merge request crystal/programs/citrine!8
pull/3/head
amy 3 years ago
commit 72e6464ee9

@ -227,7 +227,7 @@ else
fi fi
inf "Verifying network connection" inf "Verifying network connection"
ping -c 1 getcryst.al ping -c 1 ginp.archlinux.org
if [[ ! "$?" == "0" ]]; then if [[ ! "$?" == "0" ]]; then
dumptitle="Error!" dumptitle="Error!"
@ -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
@ -501,4 +499,4 @@ fi
inf "setting up timeshift" inf "setting up timeshift"
arch-chroot /mnt timeshift --btrfs arch-chroot /mnt timeshift --btrfs
inf "Installation should now be complete." inf "Installation should now be complete."

Loading…
Cancel
Save