logo       

[Bug 14908] Re: [Bug 14908] Re: swsusp fails after automatic kernel upgrade: msg#00015

Subject: [Bug 14908] Re: [Bug 14908] Re: swsusp fails after automatic kernel upgrade
On Mon, Apr 10, 2006 at 01:35:30PM -0000, John Cooper wrote:
> At first glance I added this to the top of /etc/acpi/hibernate.sh.
> 
> grubkern=`awk  'BEGIN { kern=0 } {if ( $1 == "default" ) f=$2; if ( $1 == 
> "kernel" ) if ( f == kern ) { gsub(".*z-","",$2 ) ;print $2 ; ( kern = kern + 
> 1 ) }  }'  /boot/grub/menu.lst`
> 
> if [ $grubkern != `uname -r` ] ; then exit 1 ; fi
> 
> It just checks the default kernel is the same as the running one. Pretty 
> hacky but it works! Might be nice if it could return a messages to the user 
> somehow rather than just quitting.
> 
> In the end I thought that maybe grub-update should perhaps write out a file 
> when it notices a change in default kernel.

That looks like it would only work in the case of a kernel ABI change, since
the filename doesn't change otherwise (though hibernation resume would still
fail).

Perhaps we should arrange for newly-installed kernels to always drop/touch a
file, and on reboot, remove it.  That would provide a reliable test.
Matthew, what do you think?

-- 
 - mdz
-- 
swsusp fails after automatic kernel upgrade
https://launchpad.net/malone/bugs/14908



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe