mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Garrett <mgarrett@chiark.greenend.org.uk>
To: linux-kernel@vger.kernel.org
Subject: Re: Suspend-to-disk woes
Date: Mon, 21 Mar 2005 00:17:57 +0000	[thread overview]
Message-ID: <E1DDAcH-0002n5-00@chiark.greenend.org.uk> (raw)
In-Reply-To: <1111364066.9720.2.camel@desktop.cunningham.myip.net.au>

Nigel Cunningham <ncunningham@cyclades.com> wrote:

> Yuck! Why panic when you know what is needed? A better solution is to
> tell the user they've messed up and given them the option to (1) reboot
> and try another kernel or (2) have swsusp restore the original swap
> signature and continue booting. This is what suspend2 does (with a
> timeout for the prompt). It's not that hard.

It's trivial to do this in userspace - just have an app in initramfs
that checks for a swsusp signature, and then compare the kernel
versions. If they mismatch, prompt for what to do. Putting it in the
kernel is madness.

-- 
Matthew Garrett | mjg59-chiark.mail.linux-rutgers.kernel@srcf.ucam.org

  reply	other threads:[~2005-03-21  0:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-18 16:28 Erik Andrén
2005-03-18 17:54 ` Stefan Seyfried
2005-03-18 22:04 ` Nigel Cunningham
2005-03-19 13:26 ` Pavel Machek
2005-03-19 20:20   ` Russell Miller
2005-03-19 21:29     ` Pavel Machek
2005-03-19 21:44       ` Russell Miller
2005-03-21  0:14       ` Nigel Cunningham
2005-03-21  0:17         ` Matthew Garrett [this message]
2005-03-21  5:59           ` Nigel Cunningham
2005-03-21  9:33             ` Stefan Seyfried
2005-03-21 21:38               ` Nigel Cunningham
2005-03-21  7:38         ` Stefan Seyfried
2005-03-21 11:23           ` Nigel Cunningham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1DDAcH-0002n5-00@chiark.greenend.org.uk \
    --to=mgarrett@chiark.greenend.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®