[Bug 1898087] Re: Please disable suspend when the package is installed
Launchpad Bug Tracker
1898087 at bugs.launchpad.net
Tue Nov 3 23:48:24 UTC 2020
This bug was fixed in the package ec2-hibinit-agent - 1.0.0-0ubuntu9.1
---------------
ec2-hibinit-agent (1.0.0-0ubuntu9.1) focal; urgency=medium
* Disable suspending the system (LP: #1898087)
* Always set resume device by PARTUUID instead of by device name.
Based on patch by Francis Ginther. (LP: #1896638)
-- Balint Reczey <rbalint at ubuntu.com> Fri, 02 Oct 2020 18:07:48 +0200
** Changed in: ec2-hibinit-agent (Ubuntu Focal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ec2-hibinit-agent in Ubuntu.
https://bugs.launchpad.net/bugs/1898087
Title:
Please disable suspend when the package is installed
Status in ec2-hibinit-agent package in Ubuntu:
Fix Released
Status in ec2-hibinit-agent source package in Xenial:
Won't Fix
Status in ec2-hibinit-agent source package in Bionic:
Won't Fix
Status in ec2-hibinit-agent source package in Focal:
Fix Released
Bug description:
[Impact]
Enabling CONFIG_SUSPEND in the kernel exposes a potential deadlock on
Xen instance types on AWS during hibernation, so it has been disabled
in the linux-aws kernel as an extra safety measure to prevent this
problem from happening.
[Test Case]
Try to suspend the system as a regular user:
$ /lib/systemd/systemd-sleep suspend
Sleep mode "suspend" is disabled by configuration, refusing.
On a system where this change is not present permission error appears:
$ /lib/systemd/systemd-sleep suspend
Failed to open /sys/power/state: Permission denied
[Regression Potential]
The fix is placing a configuration file drop-in to prevent the system from suspending. On EC2 instances this is unlikely to cause unwanted side effects, since suspended instances can't be woken up.
Outside of EC2 there is no use of the package itself, but this change disable suspend when the package is installed.
[Original Bug Text]
From LP: #1892728
We also need to set "AllowSuspend=no" in /etc/systemd/sleep.conf (or a .d file) as CONFIG_SUSPEND has been disabled in the kernel to improve the robustness of hibernation.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ec2-hibinit-agent/+bug/1898087/+subscriptions
More information about the foundations-bugs
mailing list