Do not add /boot twice for btrfs subvolumes
This commit is contained in:
commit
3f7d113642
34
config.yaml
Normal file
34
config.yaml
Normal 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"
|
||||||
Loading…
Reference in New Issue
Block a user