[Bug 1876570] Re: Could not resume from hibernation when swap is specified as device

2021-05-12 Thread Rasmus Bonnedal
I have now tested initramfs-tools 0.130ubuntu3.12 on bionic and it fixes
the issue for me.

Same test as above.

** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876570

Title:
  Could not resume from hibernation when swap is specified as device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1876570/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876570] Re: Could not resume from hibernation when swap is specified as device

2021-05-12 Thread Rasmus Bonnedal
I have now tested initramfs-tools 0.136ubuntu6.5 on focal and it fixes
the issue for me.

Same test as above.

** Tags removed: verification-needed-focal
** Tags added: verification-done-focal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876570

Title:
  Could not resume from hibernation when swap is specified as device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1876570/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876570] Re: Could not resume from hibernation when swap is specified as device

2021-05-12 Thread Rasmus Bonnedal
I have tested initramfs-tools 0.137ubuntu12.1 on groovy and it fixes the
issue for me.

I performed the following test:
1. Setup swap on /dev/sda3
2. Add resume=/dev/sda3 to GRUB_CMDLINE_LINUX_DEFAULT
3. Run update-grub
4. Run pm-hibernate

The system resumes from hibernation.

** Tags removed: verification-needed-groovy
** Tags added: verification-done-groovy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876570

Title:
  Could not resume from hibernation when swap is specified as device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1876570/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876570] [NEW] Could not resume from hibernation when swap is specified as device

2020-05-03 Thread Rasmus Bonnedal
Public bug reported:

I originally experienced this on Pop!_OS but I have reproduced it on a
freshly installed Ubuntu.

1. Ubuntu 20.04 LTS
2. initramfs-tools-core 0.136ubuntu6
3. I expect the system to resume from hibernation when running pm_hibernate
4. The system starts up anew when I try to resume

I have setup a swap partition on /dev/vda2 in /etc/fstab. To enable
hibernate I added the kernel parameter "resume=/dev/vda2" to
GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub and run update-grub.

>From debugging initramfs it tries to follow a symbolic link

DEV=$(readlink "$resume")
(see /usr/share/initramfs-tools/scripts/local-premount/resume, line 35)

which works well when swap is specified with uuid. When swap is
specified as a device directly the readlink returns an empty string and
the system does not resume from hibernation.

To verify this I added the parameter -f to readlink and run "update-
initramfs -u". The system now hibernates successfully.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: initramfs-tools 0.136ubuntu6
ProcVersionSignature: Ubuntu 5.4.0-28.32-generic 5.4.30
Uname: Linux 5.4.0-28-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun May  3 13:26:02 2020
InstallationDate: Installed on 2020-05-03 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitecture: all
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: initramfs-tools (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug focal

** Patch added: "resume.patch"
   
https://bugs.launchpad.net/bugs/1876570/+attachment/5365684/+files/resume.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876570

Title:
  Could not resume from hibernation when swap is specified as device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1876570/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs