From 254d298945150d4d08de0af176bf58649c257e60 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sun, 15 Oct 2023 00:22:24 +0200 Subject: [PATCH] refind commit --- README.md | 8 ++------ easy-arch.sh | 13 +++++-------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 320ecca..4474290 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,10 @@ - **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... -## One-step Automated Install (shorter) - -### `bash <(curl -sL bit.ly/easy-arch)` - -## Alternative Methods (manual) +## Manual method ```bash -wget -O easy-arch.sh https://raw.githubusercontent.com/classy-giraffe/easy-arch/main/easy-arch.sh +wget -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 a752bdb..706e154 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 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 @@ -394,9 +394,9 @@ HOOKS=(systemd autodetect keyboard sd-vconsole modconf block sd-encrypt filesyst EOF # Setting up LUKS2 encryption in grub. -info_print "Setting up grub config." +info_print "Setting up grub config (does nothing)" UUID=$(blkid -s UUID -o value $CRYPTROOT) -sed -i "\,^GRUB_CMDLINE_LINUX=\"\",s,\",&rd.luks.name=$UUID=cryptroot root=$BTRFS," /mnt/etc/default/grub + # Configuring the system. info_print "Configuring the system (timezone, system clock, initramfs, Snapper, GRUB)." @@ -423,11 +423,8 @@ arch-chroot /mnt /bin/bash -e </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. + # notes on how to use refind EOF