lkml.org 
[lkml]   [2005]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Suspend-to-disk woes
    Date
    From
    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
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:11    [W:0.044 / U:125.116 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site