Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261402AbVCUASB (ORCPT ); Sun, 20 Mar 2005 19:18:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261409AbVCUASB (ORCPT ); Sun, 20 Mar 2005 19:18:01 -0500 Received: from chiark.greenend.org.uk ([193.201.200.170]:23456 "EHLO chiark.greenend.org.uk") by vger.kernel.org with ESMTP id S261402AbVCUAR6 (ORCPT ); Sun, 20 Mar 2005 19:17:58 -0500 To: linux-kernel@vger.kernel.org Subject: Re: Suspend-to-disk woes In-Reply-To: <1111364066.9720.2.camel@desktop.cunningham.myip.net.au> References: <423B01A3.8090501@gmail.com> <20050319132612.GA1504@openzaurus.ucw.cz> <200503191220.35207.rmiller@duskglow.com> <20050319212922.GA1835@elf.ucw.cz> <20050319212922.GA1835@elf.ucw.cz> <1111364066.9720.2.camel@desktop.cunningham.myip.net.au> Date: Mon, 21 Mar 2005 00:17:57 +0000 Message-Id: From: Matthew Garrett Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 926 Lines: 20 Nigel Cunningham 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/