Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1930486 - incorrect type code 0x06 used for EFI system partition when on MBR
Summary: incorrect type code 0x06 used for EFI system partition when on MBR
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-19 01:00 UTC by Chris Murphy
Modified: 2021-05-07 15:43 UTC (History)
7 users (show)

Fixed In Version: python-blivet-3.4.0-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-07 15:43:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
anaconda.log (23.49 KB, text/plain)
2021-02-19 01:00 UTC, Chris Murphy
no flags Details
program.log (15.62 KB, text/plain)
2021-02-19 01:01 UTC, Chris Murphy
no flags Details
storage.log (291.77 KB, text/plain)
2021-02-19 01:01 UTC, Chris Murphy
no flags Details
storage.state (24.00 KB, application/octet-stream)
2021-02-19 01:01 UTC, Chris Murphy
no flags Details

Description Chris Murphy 2021-02-19 01:00:32 UTC
Description of problem:

Firmware is UEFI. Device has an existing MBR partition and single file system with 50g free. Install using Automatic partitioning succeeds but the ESP unexpectedly has a type code of 6.



Version-Release number of selected component (if applicable):
anaconda-34.24.3-1.fc34.x86_64
python3-blivet-3.3.2-2.fc34.noarch


How reproducible:
Always


Steps to Reproduce:
1. UEFI firmware, pre-existing MBR on the disk, no reclaim
2. Do an Automatic installation
3.

Actual results:

ESP type code '6'


Expected results:

ESP type code 'EF'


Additional info:

# fdisk -l /dev/vda
Disk /dev/vda: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x57f83851

Device     Boot     Start       End   Sectors  Size Id Type
/dev/vda1            2048 104859647 104857600   50G  7 HPFS/NTFS/exFAT
/dev/vda2  *    104859648 106088447   1228800  600M  6 FAT16
/dev/vda3       106088448 108185599   2097152    1G 83 Linux
/dev/vda4       108185600 209715199 101529600 48.4G  5 Extended
/dev/vda5       108187648 209715199 101527552 48.4G 83 Linux


While edk2-ovmf cooperates and boots this installation, not every firmware will agree to scan or boot from anything other than code EF.

Comment 1 Chris Murphy 2021-02-19 01:00:56 UTC
Created attachment 1757969 [details]
anaconda.log

Comment 2 Chris Murphy 2021-02-19 01:01:11 UTC
Created attachment 1757970 [details]
program.log

Comment 3 Chris Murphy 2021-02-19 01:01:27 UTC
Created attachment 1757971 [details]
storage.log

Comment 4 Chris Murphy 2021-02-19 01:01:41 UTC
Created attachment 1757972 [details]
storage.state

Comment 5 Vojtech Trefny 2021-02-19 12:44:39 UTC
upstream PR: https://github.com/storaged-project/blivet/pull/933


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