[Bug 2030732] Re: curtin removes "Restore Ubuntu to factory state" UEFI boot entry
Yao Wei
2030732 at bugs.launchpad.net
Wed Sep 27 02:53:11 UTC 2023
Confirmed fixed on OEM daily build image.
** Changed in: curtin
Status: New => Fix Committed
** Changed in: curtin
Status: Fix Committed => Invalid
** Changed in: subiquity
Status: New => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/2030732
Title:
curtin removes "Restore Ubuntu to factory state" UEFI boot entry
Status in curtin:
Invalid
Status in subiquity:
Fix Committed
Bug description:
In current subiquity it can create factory reset partition, and it
creates a UEFI boot entry for that. However, If we do a factory reset
from that exact partition, the UEFI boot entry gets removed.
Log attached, with excerpt shown below:
UEFI remove old olders efi state:
EFIBootState(current='0000', timeout='5 seconds', order=['0006', '0003', '0002', '0004', '0000'], entries={'0000': EFIBootEntry(name='UEFI RST Micron 2300 NVMe 1024GB 21022C515B1E', path='HD(2,GPT,422962a2-eae2-1244-8c7f-534693480ffe,0x21a000,0xa80000)/File(\\EFI\\Boot\\BootX64.efi)N.....YM....R,Y.'), '0002': EFIBootEntry(name='UEFI HTTPs Boot', path='PciRoot(0x0)/Pci(0x1f,0x6)/MAC(000000000000,0)/IPv4(0.0.0.00.0.0.0,0,0)/Uri()N.....YM....R,Y.'), '0003': EFIBootEntry(name='ubuntu', path='HD(1,GPT,3b02e2e6-754f-af46-b882-ce4a4bf66cc3,0xc9a000,0x219800)/File(\\EFI\\ubuntu\\shimx64.efi)'), '0004': EFIBootEntry(name='UEFI SanDisk USB Extreme Pro 00000000000000000000', path='PciRoot(0x0)/Pci(0x14,0x0)/USB(13,0)/HD(1,GPT,7995a199-775c-4ba2-b9a8-671a06c8cfa8,0x800,0xee7f000)/File(\\EFI\\Boot\\BootX64.efi)N.....YM....R,Y.'), '0005': EFIBootEntry(name='Restore Ubuntu to factory state', path='HD(2,GPT,422962a2-eae2-1244-8c7f-534693480ffe,0x21a000,0xa80000)/File(\\EFI\\boot\\shimx64.efi)'), '0006': EFIBootEntry(name='ubuntu (factory reset)&', path='HD(1,GPT,5604b707-9f3b-f649-ae9f-200a063959a4,0x800,0x219800)/File(\\EFI\\boot\\bootx64.efi)')})
Running command ['mount', '--bind', '/dev', '/target/dev'] with allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/proc', '/target/proc'] with allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/run', '/target/run'] with allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/sys', '/target/sys'] with allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
removing old UEFI entry: ubuntu
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'efibootmgr', '-B', '-b', '0003'] with allowed return codes [0] (capture=True)
removing old UEFI entry: UEFI SanDisk USB Extreme Pro 00000000000000000000
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'efibootmgr', '-B', '-b', '0004'] with allowed return codes [0] (capture=True)
removing old UEFI entry: Restore Ubuntu to factory state
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'efibootmgr', '-B', '-b', '0005'] with allowed return codes [0] (capture=True)
removing old UEFI entry: ubuntu (factory reset)&
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'efibootmgr', '-B', '-b', '0006'] with allowed return codes [0] (capture=True)
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/2030732/+subscriptions
More information about the foundations-bugs
mailing list