Please disable suspend when the package is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ec2-hibinit-agent (Ubuntu) |
Fix Released
|
Undecided
|
ubuntu18 | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
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/
Sleep mode "suspend" is disabled by configuration, refusing.
On a system where this change is not present permission error appears:
$ /lib/systemd/
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/
Changed in ec2-hibinit-agent (Ubuntu): | |
status: | New → Confirmed |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in ec2-hibinit-agent (Ubuntu): | |
status: | In Progress → Incomplete |
Changed in ec2-hibinit-agent (Ubuntu Focal): | |
status: | Confirmed → Incomplete |
description: | updated |
Changed in ec2-hibinit-agent (Ubuntu Focal): | |
status: | Incomplete → Confirmed |
status: | Confirmed → In Progress |
Changed in ec2-hibinit-agent (Ubuntu): | |
assignee: | nobody → ubuntu18 (sudana) |
Should this be back-ported to Bionic and Xenial, too?