Re[2]: Bug#632627: Re[2]: resume file
>1. uswsusp will use the initramfs resume device. So, uswsusp should read the file included in the initrd image at "conf/conf.d/resume". Is ok?
If you mean configure time (i. e. dpkg-reconfigure uswsusp) or suspending time, then, of course, no. Because this requires unpacking initramfs, and this is slow.
Use /etc/initramfs-tools/conf.d/resume . Of course, at wake up time use /conf/conf.d/resume.
>6. What file should read s2disk and s2both to find the resume device when they save the image?
They should use same device which used by early userspace when this userspace perform waking up (to be sure waking up is possible). So, we should read /etc/initramfs-tools/conf.d/resume .
>8a. I am not sure about this, because initramfs-tools is required by the kernel, but there are case that uswsusp doesn't depends on initramfs-tools and use the resume device in /etc/uswsusp.conf if initramfs-tools is not installed? Could be initramfs-tools not installed and uswsusp installed?
Yes. Kernel depends on "initramfs-tools | linux-initramfs-tool" and linux-initramfs-tool is virtual package provided by initramfs-tools and dracut. So, this is possible if you using dracut instead of initramfs-tools. (This information is about sid.)
>8. debian/control file: uswsusp will depends on initramfs-tools?
uswsusp triggers initramfs rebuilding. So, if you want initramfs-tools, add dependency "initramfs-tools". If you can work with both initramfs-tools and dracut, add dependency "initramfs-tools | linux-initramfs-tool".
> So, initramfs-tools should read /etc/uswsusp.conf and add the resume
> device to the resume file?
I think, yes.
> Then, when the user run dpkg-reconfigure uswsusp,
> update-initramfs-tools will update the initrd resume file and then the
> system know where find the resume file.
Yes
Askar
Reply to: