Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #60277

Bug#890950: initramfs-tools: Resuming from hibernated swapfile fails

From <Mario.Limonciello@dell.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#890950: initramfs-tools: Resuming from hibernated swapfile fails
Date 2018-02-21 22:30 +0100
Message-ID <vlK7D-3J0-3@gated-at.bofh.it> (permalink)
References <vloAa-6FO-11@gated-at.bofh.it> <vlGQp-1uo-1@gated-at.bofh.it> <vloAa-6FO-11@gated-at.bofh.it> <vlGQp-1uo-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Thanks, I appreciate your feedback.  
Some more comments nested below.
> >
> > 1) It requires that uswpswp is installed (to provide /bin/resume)[...]

> 
> No, it runs /bin/resume which is installed by klibc-utils.  (uswsusp
> installs its resume implementation as /sbin/resume.  That's what the
> comment is about.)

Ah thanks - this wasn't clear.  I wasn't seeing /bin/resume on a standard
system and that's because it's in /usr/lib/klibc/bin/resume on a standard
system and copied to initramfs.

> 
> > 2) It doesn't properly detect offsets
> 
> So far as I can see, the kernel has never really supported an offset
> being passed through /sys/power/resume.  However:
> 
> 1. The kernel parses the resume_offset parameter, and uses that for
> every resume request.
> 2. The implementation of /sys/power/resume is not very strict, and
> ignores the trailing ":offset".
> 
> This second feature was briefly broken between Linux 4.1-rc1 and 4.1-
> rc3, but otherwise still seems to work.  So I don't see what your
> change is fixing.
> 
> However I do think that either:
> 
> 1. The kernel should add real support for setting the resume offset
> after boot.
> 2. klibc should stop writing the unused offset parameter.

If you don't mind, I'm going to follow up with an updated patch
that drops klibc /bin/resume writing the unused parameter.

Also there was a few other aspects of my patch that I think are relevant
that I'll make sure are still present when I follow up.

1) using Plymouth if present to indicate resuming
2) Detection of swapfile via blkid (the current "auto") stuff doesn't work
otherwise.

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#890950: initramfs-tools: Resuming from hibernated swapfile fails <Mario.Limonciello@dell.com> - 2018-02-20 23:30 +0100
  Processed: Re: Bug#890950: initramfs-tools: Resuming from  hibernated swapfile fails "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-02-21 19:00 +0100
  Bug#890950: initramfs-tools: Resuming from hibernated swapfile fails Ben Hutchings <ben@decadent.org.uk> - 2018-02-21 19:00 +0100
    Bug#890950: initramfs-tools: Resuming from hibernated swapfile fails <Mario.Limonciello@dell.com> - 2018-02-21 22:30 +0100
  Bug#890950:  <Mario.Limonciello@dell.com> - 2018-02-22 05:00 +0100
  Bug#890950: Info received (Bug#890950: initramfs-tools: Resuming from hibernated swapfile fails) <Mario.Limonciello@dell.com> - 2018-02-28 23:10 +0100
    Bug#890950: RE: Bug#890950: Info received (Bug#890950: initramfs-tools: Resuming from hibernated swapfile fails) Ben Hutchings <ben@decadent.org.uk> - 2018-07-19 21:30 +0200
  Bug#890950: [Debian #890950, Ubuntu #1644975] initramfs-tools: Resuming from hibernated swapfile fails Dirk Fieldhouse <fieldhouse@gmx.net> - 2018-07-19 17:30 +0200
  Bug#890950: RE: Bug#902416: systemd: systemctl hibernate: unable to resume after upgrade Ben Hutchings <ben@decadent.org.uk> - 2019-03-10 23:30 +0100
  Bug#890950: Bug#902416: Bug#890950: RE: Bug#902416: systemd: systemctl hibernate: unable to resume after upgrade Ben Hutchings <ben@decadent.org.uk> - 2019-03-11 01:00 +0100

csiph-web