Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Grub on component devices if /boot is on mdraid device #1093

Merged
merged 2 commits into from
Jul 17, 2023

Commits on Jul 17, 2023

  1. Update Grub on component drives if /boot is on md device

    On BIOS systems, previously, if /boot was on md device such as RAID
    consisting of multiple partitions on different MBR/GPT partitioned
    drives, the part of Grub residing in the 512 Mb after MBR was only
    updated for one of the drives. Similar situation occurred on GPT
    partitioned drives and the BIOS boot partition. This resulted in
    outdated GRUB on the remaining drives which could cause the system to be
    unbootable.
    
    Now, Grub is updated on all the component devices of an md array if Grub
    was already installed on them before the upgrade.
    
    Jira: OAMG-7835
    BZ#2219544
    BZ#2140011
    matejmatuska committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    c7b1e75 View commit details
    Browse the repository at this point in the history
  2. mdraid.py lib: Check if /usr/sbin/mdadm exists

    Praviously the check was implemented using OSError return from `run`
    function. However, in this particular case it's not safe and leads
    to unexpected behaviour. Check the existence of the file explicitly
    instead prior the `run` function is called.
    
    Update existing unit-tests and extend the test case when mdadm
    is not installed.
    pirat89 committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    50d06eb View commit details
    Browse the repository at this point in the history