Bug 2116505
| Summary: | Partition type may be unexpectedly changed when using libparted | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Brian Lane <bcl> | ||||
| Component: | parted | Assignee: | Brian Lane <bcl> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 9.1 | CC: | jstodola | ||||
| Target Milestone: | rc | Keywords: | Triaged | ||||
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | parted-3.5-2.el9 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2022-11-15 11:19:34 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Brian Lane
2022-08-08 16:19:30 UTC
Created attachment 1904583 [details]
reproducer source
Here's a small C program to test for the problem.
Install gcc and parted's header files:
dnf install -y gcc parted-devel
Create 2 disk image files:
fallocate -l 10M disk-gpt.img
fallocate -l 10M disk-msdos.img
Build the test, linking to parted:
gcc -lparted test-set_system.c -o run-test
./run-test
On parted 3.5-1 the output will have all of the flags set to OFF.
When the bug is fixed the output will have bios_grub ON for gpt and bls_boot ON for msdos.
[root@localhost ~]# rpm -q parted
parted-3.5-2.el9.x86_64
[root@localhost ~]# gcc -lparted test-set_system.c -o run-test
[root@localhost ~]# ./run-test
== GPT
fs_type = ext4
boot = OFF
root = OFF
swap = OFF
hidden = OFF
raid = OFF
lvm = OFF
lba = OFF
hp-service = OFF
palo = OFF
prep = OFF
msftres = OFF
bios_grub = ON
atvrecv = OFF
diag = OFF
legacy_boot = OFF
msftdata = OFF
irst = OFF
esp = OFF
chromeos_kernel = OFF
bls_boot = OFF
linux-home = OFF
== MSDOS
fs_type = ext4
boot = OFF
root = OFF
swap = OFF
hidden = OFF
raid = OFF
lvm = OFF
lba = OFF
hp-service = OFF
palo = OFF
prep = OFF
msftres = OFF
bios_grub = OFF
atvrecv = OFF
diag = OFF
legacy_boot = OFF
msftdata = OFF
irst = OFF
esp = OFF
chromeos_kernel = OFF
bls_boot = ON
linux-home = OFF
[root@localhost ~]#
Marking as Verified:Tested
Checked that parted-3.5-2.el9 is in nightly compose RHEL-9.1.0-20220817.6 Moving to VERIFIED Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (parted bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:8342 |