On Wed, Nov 21, 2018 at 04:30:01PM +0100, Jan Kiszka wrote: > On 21.11.18 15:56, Mathieu Alexandre-Tétreault wrote: > > > You are implementing a completely different logic on top of the actual > > > switching logic then. Also I don't get your example: > > > "... if after three failed boot attempt, the boot switched to rootfs2 and > > > kernel2." > > > Does not make sense to me. efibootguard switches back after the first > > > failed attempt to bring up new rootfs/kernel. It does not test three > > > times but one time. Why would you try it more then once? A system should > > > be >reliable. > > This is actually a customer's requirement. They want the system to test the > > update more than once. Their point is that the power could get disconnected > > thus, a failed attemp could be due to power outtage and not a corrupted > > update. > > > > Hmm, sounds like a not completely far-fetched point - though I wonder how > unreliable their power supply may be that such case requires device-side > handling. Conceptually, we could introduce a retry counter that only makes a > transition to "failed" when it reaches 0 and otherwise keeps the device in > the "testing" state. Feel free to propose a patch. > Yes we could do that, but is that really a good idea? It is somehow symptomatic fixing instead of going to the root of problems. A machine either works or it does not. If it is in between, something is wrong. And there are indeed a lot of machines/systems around, that are in between and software is hacked around to cope with this :) Well - as you wish of course, but I had to point that out first.
Andreas > Jan > > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > Corporate Competence Center Embedded Linux -- Andreas Reichel Dipl.-Phys. (Univ.) Software Consultant [email protected], +49-174-3180074 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterfoehring Geschaeftsfuehrer: Henrik Klagges, Dr. Robert Dahlke, Gerhard Mueller Sitz: Unterfoehring * Amtsgericht Muenchen * HRB 135082 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/20181121154407.GA3742%40iiotirae. For more options, visit https://groups.google.com/d/optout.
