[prev in list] [next in list] [prev in thread] [next in thread] 

List:       debian-devel
Subject:    Re: System resume issues
From:       Ben Hutchings <ben () decadent ! org ! uk>
Date:       2013-08-31 19:31:50
Message-ID: 1377977510.9792.39.camel () deadeye ! wl ! decadent ! org ! uk
[Download RAW message or body]

On Sun, 2013-08-18 at 21:02 +0200, Rodolfo García Peñas wrote:
[...]
> Possible solution:
> 
> - Create a new package (for example, resume-base).

I still don't see why a new package is needed.  I suggested linux-base
and you said 'uswsusp doesn't need the kernel package (you can boot from
a floppy)'.  But linux-base doesn't require you to install any kernel
package (and floppies are soooo 20th century).

> - Resume base provides a debconf file to configure the resume file.

I don't think this is necessary.  The installer writes a default now and
should continue to do so.  On upgrade, the initramfs-tools or uswsusp
resume configuration (if present) should be copied to this file.  Anyone
who wants to change this can probably deal with a little text file.

> This file is stored at /etc/resume. The user can configure
> the /etc/resume file with dpkg-reconfigure resume-base. The file
> contains two lines, resume and offset info.

It's usual practice now to include '.conf' at the end of configuration
file names.  Also, it might also be worth looking at where other
distributions store this configuration.

> - initramfs-tools and uswsusp depend on resume-base.
> - initramfs-tools and uswsusp use the info in /etc/resume as resume device and resume offset.
> - initramfs-tools and uswsusp provides an alternative to /bin/resume.

This only makes sense if the two implementations of resume provide
compatible command-line interfaces.

> - Other packages need update their configuration scripts to use /etc/resume.

Ben.

-- 
Ben Hutchings
If God had intended Man to program,
we'd have been born with serial I/O ports.

["signature.asc" (application/pgp-signature)]
-- 
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/1377977510.9792.39.camel@deadeye.wl.decadent.org.uk


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic