From 8c55739b37ad1dbfe60d9f00adf251cc71bf4828 Mon Sep 17 00:00:00 2001 From: Wizzard Date: Mon, 26 Feb 2024 12:45:58 -0500 Subject: [PATCH] Automatically make boot loader entry --- run-after-install.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/run-after-install.sh b/run-after-install.sh index 4d5b86c..17e5f51 100755 --- a/run-after-install.sh +++ b/run-after-install.sh @@ -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 <