mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40: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
|
- **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...
|
- **CI checks**: ShellChecker checks every PR periodically for bash syntax errors, bad coding practices, etc...
|
||||||
|
|
||||||
## One-step Automated Install (shorter)
|
## Manual method
|
||||||
|
|
||||||
### `bash <(curl -sL bit.ly/easy-arch)`
|
|
||||||
|
|
||||||
## Alternative Methods (manual)
|
|
||||||
|
|
||||||
```bash
|
```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
|
chmod +x easy-arch.sh
|
||||||
bash 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).
|
# Pacstrap (setting up a base sytem onto the new root).
|
||||||
info_print "Installing the base system (it may take a while)."
|
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.
|
# Setting up the hostname.
|
||||||
echo "$hostname" > /mnt/etc/hostname
|
echo "$hostname" > /mnt/etc/hostname
|
||||||
|
|
@ -394,9 +394,9 @@ HOOKS=(systemd autodetect keyboard sd-vconsole modconf block sd-encrypt filesyst
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Setting up LUKS2 encryption in grub.
|
# 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)
|
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.
|
# Configuring the system.
|
||||||
info_print "Configuring the system (timezone, system clock, initramfs, Snapper, GRUB)."
|
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
|
mount -a &>/dev/null
|
||||||
chmod 750 /.snapshots
|
chmod 750 /.snapshots
|
||||||
|
|
||||||
# Installing GRUB.
|
# Installing and configuring rEFInd.
|
||||||
grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=GRUB &>/dev/null
|
# notes on how to use refind
|
||||||
|
|
||||||
# Creating grub config file.
|
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue