Do not add /boot twice for btrfs subvolumes

This commit is contained in:
eabdullin 2025-12-02 16:35:10 +03:00
commit 3f7d113642

34
config.yaml Normal file
View File

@ -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"