grubby-bls: only compare using relative paths if /boot is a mount point
The grub2 bootloader expects the BLS linux and initrd fields values to be set to a relative path to the root of the boot partition and the zipl tool expects these to be an absolute path to the kernel and initramfs images. So the grubby wrapper was removing the prefixes from the kernel and initrd paths before doing any comparision with the BLS fields. But this shouldn't be done if the /boot directory isn't a mount point. Resolves: rhbz#1642078 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
parent
6ed71042bd
commit
7babbb04df
@ -686,7 +686,7 @@ if [[ -n $display_info ]]; then
|
|||||||
display_info_values "${display_info}"
|
display_info_values "${display_info}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $bootloader = grub2 ]]; then
|
if [[ $bootloader = grub2 ]] && grep -q /boot /proc/mounts; then
|
||||||
remove_var_prefix
|
remove_var_prefix
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -151,6 +151,8 @@ current boot environment.
|
|||||||
Resolves: rhbz#1634752
|
Resolves: rhbz#1634752
|
||||||
- grubby-bls: fix --default-* options for s390x
|
- grubby-bls: fix --default-* options for s390x
|
||||||
Resolves: rhbz#1644608
|
Resolves: rhbz#1644608
|
||||||
|
- grubby-bls: only compare using relative paths if /boot is a mount point
|
||||||
|
Resolves: rhbz#1642078
|
||||||
|
|
||||||
* Fri Aug 10 2018 Javier Martinez Canillas <javierm@redhat.com> - 8.40-18
|
* Fri Aug 10 2018 Javier Martinez Canillas <javierm@redhat.com> - 8.40-18
|
||||||
- Make installkernel to use kernel-install scripts on BLS configuration
|
- Make installkernel to use kernel-install scripts on BLS configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user