logo       

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

Subject: Re: [Bug 14908] Re: swsusp fails after automatic kernel upgrade
On Fri, Oct 20, 2006 at 08:57:21PM -0400, Ben Collins wrote:
> On Sat, 2006-10-21 at 00:07 +0000, Matt Zimmerman wrote:
> > Ben, please arrange for future kernels to drop a file or such so that we
> > can test its timestamp against the uptime of the system to determine
> > whether the kernel has been upgraded since the last reboot (and refuse
> > to hibernate in this case).
> 
> I thought we had setup the /proc/version_signature file for this very
> reason?

I don't think that's quite enough, since it's non-trivial to query for the
version of the kernel which will be used on the next boot in order to
compare with this.  The test which I think gives us the best combination of
accuracy and simplicity is "has a new kernel been installed since the last
boot?".  That will only be wrong under special and unusual circumstances
(user installing a new non-default kernel).

> Also, it's very easy to test for /var/run/reboot-required, which shows
> that some update of the system is requiring a reboot. The largest user
> of this file is the kernel. I would be willing to bet that other users
> would also be grounds for not hibernating.
>
> So if the hibernation scripts test for /var/run/reboot-required, they
> could use this as a means for deciding not to hibernate.

Unfortunately, several other components use this as well.  initscripts,
udev, dbus, hal, etc., and we don't want to disable hibernation
unnecessarily in those cases (especially for users of the development
branch where those may change often).

-- 
 - mdz



<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