Automatically make boot loader entry

This commit is contained in:
Wizzard 2024-02-26 12:45:58 -05:00
parent 9d4eb939a1
commit 8c55739b37
1 changed files with 19 additions and 0 deletions

View File

@ -5,3 +5,22 @@ zen_version="zen1"
revision="1"
sudo dracut /boot/initramfs-${kernel_version}-${zen_version}.fc39.x86_64.img ${kernel_version}-${zen_version}_${revision}
KERNEL_VERSION="6.7.6-zen1"
if [ "$1" != "" ]; then
KERNEL_VERSION=$1
fi
ROOT_UUID=$(findmnt -n -o UUID -T /)
LOADER_ENTRY_PATH="/boot/loader/entries/dz.conf"
cat > $LOADER_ENTRY_PATH <<EOF
title Fedora ($KERNEL_VERSION) 39 (DZ Edition)
version $KERNEL_VERSION
linux /vmlinuz-$KERNEL_VERSION.fc39.x86_64
initrd /initramfs-$KERNEL_VERSION.fc39.x86_64.img
options root=UUID=$ROOT_UUID ro rootflags=subvol=root rhgb quiet
EOF
echo "Boot loader entry $LOADER_ENTRY_PATH has been updated."