Bug 1437601

Summary: The partition name must be 'EFI System Partition'.
Product: [Fedora] Fedora Reporter: Jerry Amundson <jamundso>
Component: livecd-toolsAssignee: Neal Gompa <ngompa13>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: adam.stokes, bcl, bruno, dhuff, Jasper.Hartline, katzj, ngompa13
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: livecd-tools-24.3-2.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1438578 (view as bug list) Environment:
Last Closed: 2017-04-30 00:17:49 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:
Bug Depends On:    
Bug Blocks: 1438578    

Description Jerry Amundson 2017-03-30 15:53:35 UTC
Description of problem:
        ALERT:
        The partition name must be 'EFI System Partition'.


Version-Release number of selected component (if applicable):
livecd-tools-24.2-1.fc26.x86_64

How reproducible:
Always

Steps to Reproduce:
1.Disk /dev/sdc: 14.7 GiB, 15812526080 bytes, 30883840 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: gpt
Disk identifier: 906DE484-2584-412F-9F3A-0C7919CA2B3F

Device     Start      End  Sectors  Size Type
/dev/sdc1   8192 30879743 30871552 14.7G EFI System

2./usr/bin/livecd-iso-to-disk --efi --format --noverify --reset-mbr ~jamundson/Downloads/Fedora-LXQt-Live-x86_64-26-20170328.n.0.iso /dev/sdc1
3.

Actual results:
/usr/bin/livecd-iso-to-disk: line 492: : command not found

    WARNING: This will DESTROY All DATA on: /dev/sdc !!

        Press Enter to continue, or Ctrl C to abort.

/dev/sdc: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/sdc: 8 bytes were erased at offset 0x3ae7ffe00 (gpt): 45 46 49 20 50 41 52 54
/dev/sdc: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
/dev/sdc: calling ioctl to re-read partition table: Success
Waiting for devices to settle...
mkfs.fat 4.1 (2017-01-24)

        ALERT:
        The partition name must be 'EFI System Partition'.

        This can be set with a partition editor, such as parted,
        or you can run livecd-iso-to-disk with the --reset-mbr option.

Expected results:
Correctly written USB drive.

Additional info:
Also happened on Fedora 25 before system-upgrade.

Comment 1 Jerry Amundson 2017-03-30 17:20:03 UTC
A quick glance tells me line 408, or something before it, is wrong -
    p=${p##$device}
sets p and partnum to empty strings.

Comment 2 Jerry Amundson 2017-04-03 21:35:35 UTC
I have confirmed that livecd-tools-24.1-1.fc26.x86_64 does not suffer from this problem.

Comment 3 Fedora Update System 2017-04-13 02:48:08 UTC
livecd-tools-24.3-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-a95a89e4ba

Comment 4 Fedora Update System 2017-04-13 17:21:59 UTC
livecd-tools-24.3-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-a95a89e4ba

Comment 5 Fedora Update System 2017-04-30 00:17:49 UTC
livecd-tools-24.3-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.