Bug 1890819 - Fedora 28 - Fedora 33 grub2-mkconfig throws device-mapper errors in a multiboot GPT based environment
Summary: Fedora 28 - Fedora 33 grub2-mkconfig throws device-mapper errors in a multibo...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: os-prober
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Hedayat Vatankhah
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-22 22:41 UTC by ernie_07
Modified: 2020-11-07 23:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-07 23:17:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description ernie_07 2020-10-22 22:41:06 UTC
Description of problem:

Fedora 28 - Fedora 33 grub2-mkconfig throws device-mapper errors in a multiboot GPT based environment

Version-Release number of selected component (if applicable):

Fedora 28 through Fedora 33 INCLUSIVE

How reproducible:

100%

Steps to Reproduce:

1. Start with a multiboot GPT based system.
 
2. Attempt to create a new grub.cfg file using the string
   "grub2-mkconfig -o ./grub.cfg".
3.

Actual results:

Most of the time a new grub.cfg file will not be created.
All of the time device-mapper errors will be thrown.

Expected results:

A useable grub.cfg file.
No device-mapper errors.

Additional info:

This bug was introduced when file os-prober30 had a major rewrite for inclusion in Fedora 28.

Comment 1 Hedayat Vatankhah 2020-10-25 23:15:50 UTC
Please attach the complete os-prober/grub2-mkconfig logs (appear in your journal logs). 

Also, if it is really related to 30_os-prober file, it belongs to grub2 package not os-prober. But its better to see the logs before deciding about it.

Surprisingly, os-prober doesn't depend on device-mapper anymore (at least directly). So, I've no idea about what your errors could be.

Comment 2 ernie_07 2020-10-26 02:25:55 UTC
I reproduced the problem in Fedora 33 beta and will attempt to reproduce it again after Fedora 33 has been officially released.

Not being familiar with the acquisition of log data I am uncertain concerning which steps should I go through to obtain the information that you are seeking. 

Would you mind providing guidance?

Comment 3 Hedayat Vatankhah 2020-11-03 23:09:20 UTC
Run the following command in a separate shell prompt:

journalctl -lf > mkconfig.log

Then run grub2-mkconfig in another prompt. When finished, press Ctrl+C in the first shell, so that the journalctl command is terminated. Then send the log file.

Thanks

Comment 4 ernie_07 2020-11-06 04:23:42 UTC
I am trying to remove egg from my face.

This bug manifests with grub2-mkconfig version 2.03 but grub2-mkconfig version 2.04 works as expected both from a Fedora 33 LiveCD and also from an updated installation. Failure associated with a stupid user error led me to believe that this problem existed in Fedora 32 and Fedora 33 Beta.

When I tested correctly, grub2-mkconfig version 2.04 in Fedora 32 and Fedora 33 worked as expected.

Comment 5 ernie_07 2020-11-06 04:24:30 UTC
I am trying to remove egg from my face.

This bug manifests with grub2-mkconfig version 2.03 but grub2-mkconfig version 2.04 works as expected both from a Fedora 33 LiveCD and also from an updated installation. Failure associated with a stupid user error led me to believe that this problem existed in Fedora 32 and Fedora 33 Beta.

When I tested correctly, grub2-mkconfig version 2.04 in Fedora 32 and Fedora 33 worked as expected.

Comment 6 ernie_07 2020-11-06 04:24:45 UTC
I am trying to remove egg from my face.

This bug manifests with grub2-mkconfig version 2.03 but grub2-mkconfig version 2.04 works as expected both from a Fedora 33 LiveCD and also from an updated installation. Failure associated with a stupid user error led me to believe that this problem existed in Fedora 32 and Fedora 33 Beta.

When I tested correctly, grub2-mkconfig version 2.04 in Fedora 32 and Fedora 33 worked as expected.

Comment 7 Hedayat Vatankhah 2020-11-07 21:57:27 UTC
:)
So, can we close this report? Seems that everything is OK now, right?

Comment 8 ernie_07 2020-11-07 22:05:21 UTC
Yes, Please close this report.

Comment 9 Hedayat Vatankhah 2020-11-07 23:17:28 UTC
Thanks.


Note You need to log in before you can comment on or make changes to this bug.