There is hibernate option even without an active swap partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Fix Released
|
Critical
|
Unassigned | ||
systemd (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt | ||
Trusty |
Fix Released
|
High
|
Yu Ning | ||
Utopic |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
In Ubuntu 13.10 and 14.04 the "hibernate" option will always be displayed in the system dropdown menu, even if there is no active swap partition. Click the hibernate option will perform the hibernate operation but will fail during the process.
As a contrast, in Ubuntu 13.04 and earlier releases the "hibernate" option is visible only if there is active swap partition.
FIX: http://
[Impact]
With the backported patch when there is no active swap partition "hibernate" will not be displayed in the system dropdown menu.
[Test Case]
1. Install Ubuntu 14.04 image, do not create swap partition during installation
2. Login to desktop
3. Click the system icon on the top right of the screen
4. Check if there is "hibernate" option in the dropdown menu
Expected result:
The "hibernate" option should not be visible
Actual result:
There is the "hibernate" option, click on it will perform the hibernation operation, but will fail during the procedure.
[Regression Potential]
N/A
Related branches
- Ubuntu Development Team: Pending requested
-
Diff: 1581 lines (+1423/-19)12 files modified.pc/Advertise-hibernation-only-if-there-s-enough-free-sw.patch/src/shared/fileio.c (+596/-0)
.pc/Advertise-hibernation-only-if-there-s-enough-free-sw.patch/src/shared/fileio.h (+37/-0)
.pc/Advertise-hibernation-only-if-there-s-enough-free-sw.patch/src/shared/sleep-config.c (+179/-0)
.pc/Advertise-hibernation-only-if-there-s-enough-free-sw.patch/src/test/test-fileio.c (+145/-0)
.pc/applied-patches (+1/-0)
debian/changelog (+8/-0)
debian/patches/Advertise-hibernation-only-if-there-s-enough-free-sw.patch (+289/-0)
debian/patches/series (+1/-0)
src/shared/fileio.c (+34/-0)
src/shared/fileio.h (+2/-0)
src/shared/sleep-config.c (+107/-19)
src/test/test-fileio.c (+24/-0)
Changed in oem-priority: | |
importance: | Undecided → Critical |
Changed in systemd (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
Changed in systemd (Ubuntu Trusty): | |
assignee: | nobody → Martin Pitt (pitti) |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
description: | updated |
I'm not sure if systemd is the right project to report this bug against, please let me know if I made any mistakes.