refs #1970 fix handling of spaces in ogNvramAddEntry
parent
9514ce6b25
commit
0961ec10be
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.8.3] - 2025-05-08
|
||||
|
||||
### Fixed
|
||||
|
||||
- Have ogNvramAddEntry() handle EFI entries with spaces in them
|
||||
|
||||
## [0.8.2] - 2025-05-07
|
||||
|
||||
### Changed
|
||||
|
|
|
@ -98,8 +98,10 @@ def ogNvramAddEntry (bootlbl, bootldr, nvram_set=False):
|
|||
if nvram_set:
|
||||
efibootmgr_out = subprocess.run (['efibootmgr'], capture_output=True, text=True).stdout
|
||||
for l in efibootmgr_out.splitlines():
|
||||
words = l.split (maxsplit=1)
|
||||
if len(words) < 2: continue
|
||||
if '\t' not in l: continue
|
||||
(pre_tab, post_tab) = l.split ('\t', maxsplit=1)
|
||||
words = pre_tab.split (maxsplit=1)
|
||||
if len(words) < 2: continue ## shouldn't happen
|
||||
if words[1] == bootlabel:
|
||||
numentry = words[0][4:8]
|
||||
order = ogNvramGetOrder()
|
||||
|
|
Loading…
Reference in New Issue