Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For EFI you could probably set BootNext to something else early on, in combination with some restarting watchdog. GRUB can store state between boots https://www.gnu.org/software/grub/manual/grub/html_node/Envi... and has "default" and "fallback" vars.


So the bootloader would always advance nextboot= to the next boot entry, and a process after a successful boot must update nextboot=$thisbootentry?

Is there another way with fewer write() calls?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: