mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 11:30:55 +00:00
refind commit
This commit is contained in:
parent
0fb1180482
commit
254d298945
2 changed files with 7 additions and 14 deletions
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
13
easy-arch.sh
13
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 <<EOF
|
|||
mount -a &>/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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue