This commit is contained in:
root 2022-12-01 09:59:04 -07:00
parent ba5e58a55f
commit 7b6a1e364f

2
arch.sh Normal file → Executable file
View File

@ -7,7 +7,7 @@ TARGET='/mnt'
###################################### ######################################
clear clear
echo echo
HARD_DISK=$(lsblk | cut -d ' ' -f1 | grep -vi zram | head -2 | tail -1) HARD_DISK=/dev/$(lsblk | cut -d ' ' -f1 | grep -viE 'loop0|sr0|zram' | head -2 | tail -1)
EFI="/dev/$(lsblk | grep $HARD_DISK | head -2 | tail -1 | cut -c 7-20 | cut -d ' ' -f1)" EFI="/dev/$(lsblk | grep $HARD_DISK | head -2 | tail -1 | cut -c 7-20 | cut -d ' ' -f1)"
BTRFS="/dev/$(lsblk | grep $HARD_DISK | head -3 | tail -1 | cut -c 7-20 | cut -d ' ' -f1)" BTRFS="/dev/$(lsblk | grep $HARD_DISK | head -3 | tail -1 | cut -c 7-20 | cut -d ' ' -f1)"
ROOT_NAME='arch' ROOT_NAME='arch'