Update easy-arch.sh

This commit is contained in:
Tommaso Chiti 2021-04-14 10:06:30 +02:00 committed by GitHub
parent 44f38d4a66
commit a0170741c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.