grubby/config.yaml
2025-12-02 16:41:15 +03:00

35 lines
941 B
YAML

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"