hibernate-util: log that we actually read /sys/power/resume* rather than cmdline
authorMike Yuan <me@yhndnzj.com>
Wed, 17 Jan 2024 11:52:40 +0000 (19:52 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 17 Jan 2024 16:10:14 +0000 (16:10 +0000)
commit46ce85bf7f44679820118a1f95dd03192138771b
treeefe6649720056a7bf68f39d4dfcb104c9e7a91ae
parentd9975dbb3c32841cf225bf9fe7a1a5e8438f2228
hibernate-util: log that we actually read /sys/power/resume* rather than cmdline

/sys/power/resume is always populated by the initrd, while
/sys/power/resume_offset might have been populated by
the kernel itself. Therefore, if the user is using an initrd
that doesn't include resume hook, the hibernation would fail,
which is expected. However, it was hard to track down the real
problem, since the previous log message suggested that resume=
is not set through kernel cmdline.
src/shared/hibernate-util.c