mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Update easy-arch.sh
This commit is contained in:
parent
44f38d4a66
commit
a0170741c5
1 changed files with 2 additions and 6 deletions
|
|
@ -1,11 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
# Cleaning the TTY.
|
# Cleaning the TTY.
|
||||||
clear
|
clear
|
||||||
|
|
||||||
# Exit on STDERR.
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Selecting the target for the installation.
|
# Selecting the target for the installation.
|
||||||
PS3="Select the disk where Arch Linux is going to be installed: "
|
PS3="Select the disk where Arch Linux is going to be installed: "
|
||||||
select ENTRY in $(lsblk -dpnoNAME|grep -P "/dev/sd|nvme|vd");
|
select ENTRY in $(lsblk -dpnoNAME|grep -P "/dev/sd|nvme|vd");
|
||||||
|
|
@ -106,8 +103,7 @@ cat > /mnt/etc/hosts <<EOF
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Configuring /etc/mkinitcpio.conf
|
# Configuring /etc/mkinitcpio.conf
|
||||||
echo "Configuring /etc/mkinitcpio for ZSTD compression and LUKS hook."
|
echo "Configuring /etc/mkinitcpio.conf for LUKS hook."
|
||||||
sed -i -e 's,#COMPRESSION="zstd",COMPRESSION="zstd",g' /mnt/etc/mkinitcpio.conf
|
|
||||||
sed -i -e 's,modconf block filesystems keyboard,keyboard keymap modconf block encrypt filesystems,g' /mnt/etc/mkinitcpio.conf
|
sed -i -e 's,modconf block filesystems keyboard,keyboard keymap modconf block encrypt filesystems,g' /mnt/etc/mkinitcpio.conf
|
||||||
|
|
||||||
# Enabling LUKS in GRUB and setting the UUID of the LUKS container.
|
# Enabling LUKS in GRUB and setting the UUID of the LUKS container.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue