2024-01-28 01:31:29 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-02-26 12:01:57 -05:00
|
|
|
kernel_version="6.7.6"
|
2024-01-28 01:31:29 -05:00
|
|
|
zen_version="zen1"
|
|
|
|
revision="1"
|
|
|
|
|
2024-02-26 12:01:57 -05:00
|
|
|
sudo dracut /boot/initramfs-${kernel_version}-${zen_version}.fc39.x86_64.img ${kernel_version}-${zen_version}_${revision}
|
2024-02-26 12:45:58 -05:00
|
|
|
|
|
|
|
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
|
2024-02-26 12:48:29 -05:00
|
|
|
options root=UUID=$ROOT_UUID ro rootflags=subvol=root rhgb quiet modprobe.blacklist=nouveau nvidia-drm.modeset=1 nvidia-drm.fbdev=1 intel_iommu=on iommu=pt fbcon=nodefer video=efifb:nobgrt vfio_iommu_type1.allow_unsafe_interrupts=1
|
2024-02-26 12:45:58 -05:00
|
|
|
EOF
|
|
|
|
|
|
|
|
echo "Boot loader entry $LOADER_ENTRY_PATH has been updated."
|