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

bsc#1039712 and bsc#1052006: Find correct mbr device to install grub #457

Merged
merged 2 commits into from
Aug 22, 2017
Merged

bsc#1039712 and bsc#1052006: Find correct mbr device to install grub #457

merged 2 commits into from
Aug 22, 2017

Conversation

gilsonsouza
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.005%) to 80.687% when pulling 45b05c5 on gilsonsouza:SLE-12-SP3 into 05a34d9 on yast:SLE-12-SP3.

)
boot_disk = Yast::Storage.GetDisk(tm, dev)["device"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried to understand that Storage.GetDisk() function and Storage.GetDiskPartitionTg() which it calls. The latter function seems to take the partition name and from that tries to deduce the disk name, then searching the target map for a disk that also has that partition as a child. It also does not check the type of the object (it should test for CT_DISK), so it seems to work only because the names don't match otherwise (or it might find the CT_BTRFS container for /dev/btrfs as well as in the bug that this patch is about to fix).

So this does work, but entirely for the wrong reasons (which is the fault of that old storage code, not of your patch).

Copy link
Contributor

@shundhammer shundhammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

(see also my comment above - this is the best we can safely do at the moment AFAICS)

@gilsonsouza gilsonsouza merged commit 150212e into yast:SLE-12-SP3 Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants