retitle 403036 Only warn on install for missing kernel support 
thanks

On Thu, 14 Dec 2006 10:24:21 +0100
Guus Sliepen <[EMAIL PROTECTED]> wrote:

> Package: uswsusp
> Version: 0.3~cvs20060928-6
> Severity: normal
> 
> When I upgrade the uswsusp package, I get a debconf warning that I don't
> have CONFIG_SOFTWARE_SUSPEND enabled in my kernel TWICE.
> 
> First of all, if my kernel is configured incorrectly, and if you want to
> warn about it, please only do so during the first time you install the
> package, not during every upgrade.

Hmm, yes that would be better.
 
> Second, looking at the uswsusp.config script, I see it doesn't really
> test for CONFIG_SOFTWARE_SUSPEND, it tests whether there is snapshot
> support or not, and then shows the debconf template uswsusp/no_snapshot.
> Maybe the template is wrong? It confuses me. And why is this debconf
> message critical?

No, the template is not wrong. If you have CONFIG_SOFTWARE_SUSPEND,
you'll have /sys/class/misc/snapshot/dev. It is needed for userspace software
suspend. Testing for that file in /sys is the simplest way to see if your
system is capable of doing uswsusp.

> Third, whether or not I have snapshot support or not, this package may
> be perfectly useful to me. The s2ram utility for example does not
> require any special kernel support. I'd rather not see any warning at
> all.

The name of this package is 'uswsusp', which is (an ugly) abbreviation of 
Userspace Software Suspend (implemented in s2disk and s2both). Software 
suspend is indeed its primary purpose. Upstream even supplies s2ram as a 
'testing utility'.
I was tired of getting bug reports of people that said that `It doesn't work',
when in fact they didn't have support in their kernel. The warning stays.
I think however, that I will adopt your suggestion to only show it on install.

grts Tim

Attachment: signature.asc
Description: PGP signature

Reply via email to