This commit is contained in:
Your Name 2024-02-23 18:28:51 -07:00
parent ab5697f876
commit a111028541

View File

@ -700,7 +700,7 @@ bootloader() {
#MACHINE_ID=$(cat /etc/machine-id) #MACHINE_ID=$(cat /etc/machine-id)
MACHINE_ID=$(ls /efi | grep -Evi 'loader|efi') MACHINE_ID=$(ls /efi | grep -Evi 'loader|efi')
KERNEL=$(eselect kernel list | cut -d ']' -f2 | cut -d "*" -f1 | cut -d "-" -f2 | tail -1) KERNEL=$(eselect kernel list | cut -d ']' -f2 | cut -d "*" -f1 | cut -d "-" -f2 | tail -1)
KERNEL_VERSION=$(ls /efi/$MACHINE_ID) KERNEL_VERSION=$(ls /efi/$MACHINE_ID | tail -1)
ROOT_NAME=$1 ROOT_NAME=$1
BTRFS=$2 BTRFS=$2
LOADER_FILE="/efi/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf" LOADER_FILE="/efi/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf"