system76 / firmware-update

System76 Firmware Update Utility
GNU General Public License v3.0
204 stars 15 forks source link

Preserve BootOrder when flashing #7

Closed crawfxrd closed 4 years ago

crawfxrd commented 4 years ago

Save the data for BootOrder and Boot#### before flashing and write it back after flashing.

Resolves: #6

jackpot51 commented 4 years ago

This looks pretty good. I just have two questions - do we want the flashing process to fail in the event set_boot_item or get_boot_item returns an error? We could either do that or print an error