29 lines
938 B
Bash
Executable File
29 lines
938 B
Bash
Executable File
#!/bin/bash
|
|
|
|
kernel_version="6.7.6"
|
|
zen_version="zen1"
|
|
revision="1"
|
|
|
|
sudo dnf install RPMS/x86_64/linux-zen-${kernel_version}-${revision}.fc39.x86_64.rpm
|
|
|
|
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 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
|
|
EOF
|
|
|
|
echo "Boot loader entry $LOADER_ENTRY_PATH has been updated."
|