From 3f7d113642f52a67ddb63787159532a79dfb0145 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Tue, 2 Dec 2025 16:35:10 +0300 Subject: [PATCH] Do not add /boot twice for btrfs subvolumes --- config.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 config.yaml diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..07205e8 --- /dev/null +++ b/config.yaml @@ -0,0 +1,34 @@ +actions: + - replace: + - target: "grubby-bls" + find: | + get_prefix() { + if [[ $bootloader = grub2 ]] && mountpoint -q /boot; then + echo "/boot" + else + echo "" + fi + } + replace: | + get_prefix() { + if [[ $bootloader = grub2 ]] && mountpoint -q /boot; then + prefix_kern="/boot" + else + prefix_kern="" + fi + if [[ $(stat -f --format=%T /boot) = "btrfs" ]] && [[ $(stat --format=%i /boot) = "256" ]]; then + prefix_kern="" + fi + echo "$prefix_kern" + } + count: 1 + + - modify_release: + - suffix: ".alma.1" + enabled: true + + - changelog_entry: + - name: "Eduard Abdullin" + email: "eabdullin@almalinux.org" + line: + - "Do not add /boot twice for btrfs subvolumes"