Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix get_disklabel_type() not returning anything for multipath devices
Without this fix, get_disklabel_type() used to find the Grub device to install Grub on was returning nothing when the disk was a multipath device, leading to the error below: ~~~ 2024-10-22 10:10:05.114081935 Determining where to install GRUB2 (no GRUB2_INSTALL_DEVICES specified) : +++ get_disklabel_type /dev/mapper/0QEMU_QEMU_HARDDISK_OSDISK +++ local component disk size label junk +++ disk= +++ read component disk size label junk ++++ grep '^disk /dev/mapper/0QEMU_QEMU_HARDDISK_OSDISK ' /var/lib/rear/layout/disklayout.conf +++ test +++ return 1 ++ label= ++ return 1 : 2024-10-22 10:10:05.148970198 Failed to install GRUB2 - you may have to manually install it ~~~ The reason for this is the disklayout contains a line starting with *multipath* but ReaR code searches for *disk* only. Signed-off-by: Renaud Métrich <[email protected]>
- Loading branch information