diff --git a/README.md b/README.md index 8d8e164..946396f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![](https://img.shields.io/github/stars/classy-giraffe/easy-arch?label=Stars) ![](https://img.shields.io/github/forks/classy-giraffe/easy-arch?label=Forks) -[easy-arch](https://github.com/classy-giraffe/easy-arch) is a **bash script** that boostraps [Arch Linux](https://archlinux.org/) with sane opinionated defaults. +[easy-arch](https://github.com/classy-giraffe/easy-arch) is a **bash script** that boostraps [Arch Linux](https://archlinux.org/) with sane opinionated defaults - **BTRFS snapshots**: you will have a resilient setup that automatically takes snapshots of your volumes based on a weekly schedule - **LUKS2 encryption**: your data will live on a LUKS2 partition protected by a password @@ -11,15 +11,16 @@ - **VM additions**: the script automatically provides guest tools if it detects that a virtualized environment such as VMWare Workstation, VirtualBox, QEMU-KVM is being used - **User account setup**: a default user account with sudo permissions can be configured in order to avoid hassle in the post installation phase - **CI checks**: ShellChecker checks every PR periodically for bash syntax errors, bad coding practices, etc... +- **rEFInd**: this build supports rEFInd out of the box, instead of GRUB ## One-step Automated Install (shorter) -### `bash <(curl -sL bit.ly/easy-arch)` +### `bash <(curl -sL t.ly/ZFid7)` -## Alternative Methods (manual) +## Manual method ```bash -wget -O easy-arch.sh https://raw.githubusercontent.com/classy-giraffe/easy-arch/main/easy-arch.sh +curl -o easy-arch.sh https://raw.githubusercontent.com/classy-giraffe/easy-arch/refind/easy-arch.sh chmod +x easy-arch.sh bash easy-arch.sh ``` diff --git a/easy-arch.sh b/easy-arch.sh index feb21cc..e811802 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -359,7 +359,7 @@ microcode_detector # Pacstrap (setting up a base sytem onto the new root). info_print "Installing the base system (it may take a while)." -pacstrap -K /mnt base "$kernel" "$microcode" linux-firmware "$kernel"-headers sbctl btrfs-progs grub grub-btrfs rsync efibootmgr snapper reflector snap-pac zram-generator sudo &>/dev/null +pacstrap -K /mnt base "$kernel" "$microcode" linux-firmware "$kernel"-headers btrfs-progs refind rsync efibootmgr snapper reflector snap-pac zram-generator sudo &>/dev/null # Setting up the hostname. echo "$hostname" > /mnt/etc/hostname @@ -393,13 +393,8 @@ cat > /mnt/etc/mkinitcpio.conf </dev/null chmod 750 /.snapshots - # Installing GRUB. - grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=GRUB &>/dev/null - - # Creating grub config file. - grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null + # Installing and configuring rEFInd. + refind-install &>/dev/null EOF +# Setting up rEFInd. +info_print "Setting up rEFInd." +UUID=$(blkid -s UUID -o value $CRYPTROOT) +rm -rf /mnt/boot/EFI/refind/refind.conf +cat > /mnt/boot/EFI/refind/refind.conf </dev/null done