Automatically make boot loader entry
This commit is contained in:
parent
9d4eb939a1
commit
8c55739b37
|
@ -5,3 +5,22 @@ zen_version="zen1"
|
||||||
revision="1"
|
revision="1"
|
||||||
|
|
||||||
sudo dracut /boot/initramfs-${kernel_version}-${zen_version}.fc39.x86_64.img ${kernel_version}-${zen_version}_${revision}
|
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."
|
||||||
|
|
Loading…
Reference in New Issue