Nigel Cunningham wrote: > Hi. > > On Sun, 2005-03-20 at 08:29, Pavel Machek wrote:
>> boot with "noresume", then mkswap. > > Yuck! Why panic when you know what is needed? A better solution is to Ok, so let's printk("You booted another kernel than you suspended with.\n"); printk("You have two options now:\n"); printk(" - boot the kernel you suspended with\n"); printk(" - pass 'noresume' at boot and mkswap your swap partition " " later\n"); printk("Try again, player 1!\n"); panic(); > tell the user they've messed up and give 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. yes, but you need user input etc. Not considered a good idea IIRC. Anyway, the hard thing to do is to find out when to bail out and when not. The part that handles the user interface is the easier one :-) Regards, Stefan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/