Hi!Sorry, my bad, I logined as root:P
On 2016???07???13??? 17:50, Pavel Machek wrote:Please check again:
On Thu 2016-07-07 14:40:58, Chen Yu wrote:It works on my platform, although I did not tested it for too many
This mode is to verify if the snapshot data written toYour examples will not work, will they?
swap device can be successfully restored to memory. It
is useful to ease the debugging process on hibernation,
since this mode can not only bypass the BIOSen/bootloader,
but also the system re-initialization.
For example:
$ sudo echo snapshot > /sys/power/disk
$ sudo echo disk > /sys/power/state
/* manual resume.*/
$ sudo echo 8:3 > /sys/power/resume
rounds.
sudo echo disk > /sys/power/state
-bash: /sys/power/state: Permission denied
...because bash does the open, not echo.
OK.Yeah, that's the way. Read-only root is other option.This is also quite tricky/dangerous. If you do this with filesystemsAh, yes, this is quite tricky, maybe we can use this option as a
mounted R/W, it is "good bye, filesystems".
debug method,
for example, boot with rootfs = initrd, without mounting any disks,
and then swapon the swap device, and do a testing. This should be safer?
Just add fat warning into the documentation.I guess updating documentation would be welcome from my side,OK, I'll update the documents.
otherwise it should be ok.
Thanks,
Pavel