hibernate-resume-generator: don't initiate resume if soft-rebooted
authorMike Yuan <me@yhndnzj.com>
Mon, 14 Oct 2024 16:31:14 +0000 (18:31 +0200)
committerMike Yuan <me@yhndnzj.com>
Mon, 14 Oct 2024 23:18:26 +0000 (01:18 +0200)
commit70ae9dc4f66aa6d0ee4d487f65bc2fdf0027cc4b
tree93c8a2881b967b92d99ad0fc61ab17597ef8d9e2
parent1cfe9737cf2973c9e3b27de79099ae897cea54c1
hibernate-resume-generator: don't initiate resume if soft-rebooted

This is just paranoia, to ensure that we don't accidentally
initiate resume if the initrd is entered through soft-reboot
rather than the initial one for booting up.
src/hibernate-resume/hibernate-resume-generator.c
src/shared/generator.c
src/shared/generator.h