<p dir="ltr"><br>
On 24 Apr 2016 21:31, "poma" <<a href="mailto:pomidorabelisima@gmail.com">pomidorabelisima@gmail.com</a>> wrote:<br>
><br>
> On 20.04.2016 22:42, Chris Murphy wrote:<br>
> > On Wed, Apr 20, 2016 at 1:50 PM, Tobias Hunger <<a href="mailto:tobias.hunger@gmail.com">tobias.hunger@gmail.com</a>> wrote:<br>
><br>
> [...]<br>
><br>
> > Anyway, the most complete solution for BIOS, UEFI, and UEFI Secure<br>
> > Boot systems, is fast startups as possible (which helps all kinds of<br>
> > use cases not just desktops), and then encourage DE's and app makers<br>
> > to support apps that save their own state without users having to<br>
> > manually save files, and default to power off in low battery cases.<br>
> ><br>
> > I guess opensuse has some patches that aren't upstream yet that<br>
> > support signed hibernation images for UEFI Secure Boot? Maybe there's<br>
> > a way forward at some point. But right now I'm just not seeing it.<br>
> > There's some kind of brick wall in every direction with hibernation.<br>
> ><br>
><br>
> :)<br>
> "Lacus Hiemalis Edictum" patch-set actually existed for several years.<br>
><br>
> ...<br></p>
<p dir="ltr"><snip></p>
<p dir="ltr">There is something that can be done in systemd to avoid the data loss issue without having to add complexity to the generator.</p>
<p dir="ltr">Add to the logind conditions for suspend-to-disk an additional one to the existing ones to ensure resume= is in the kernel cmdline. </p>
<p dir="ltr">If it's not there refuse the hibernate and shutdown instead. At least then the processes would get shutdown properly with a TERM and not have a power cord pull situation (with sync) on them.</p>
<p dir="ltr">That would be minimal change from present but avoid writing a resume image that will never be read.</p>