touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #35016
[Bug 1394388] [NEW] pm-suspend not restoring /sys/power/disk with /bin/dash
Public bug reported:
Ubuntu 14.04LTS
pm-utils 1.4.1-13ubuntu0.1
When issuing the pm-suspend command, the scripts set the HIBERNATE_MODE in /sys/power/disk to "suspend".
There is some shell magic to save the previous setting in variable HIBERNATE_MODE_SAVE, but this fails under
the default shell /bin/dash (works correctly with /bin/bash).
Effect: if you use pm-suspend once, the effective HIBERNATE_MODE in /sys/power/disk stays in "suspend", and
any subsequent pm-hibernate will also just do a suspend instead of "platform" or "shutdown".
** Affects: pm-utils (Ubuntu)
Importance: Undecided
Status: New
** Tags: bashism hibernate pm-utils suspend
** Patch added: "escape special chars in parameter expansion for HIBERNATE_MODE_SAVE"
https://bugs.launchpad.net/bugs/1394388/+attachment/4264030/+files/hibernate_mode_save-bashism.patch
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1394388
Title:
pm-suspend not restoring /sys/power/disk with /bin/dash
Status in “pm-utils” package in Ubuntu:
New
Bug description:
Ubuntu 14.04LTS
pm-utils 1.4.1-13ubuntu0.1
When issuing the pm-suspend command, the scripts set the HIBERNATE_MODE in /sys/power/disk to "suspend".
There is some shell magic to save the previous setting in variable HIBERNATE_MODE_SAVE, but this fails under
the default shell /bin/dash (works correctly with /bin/bash).
Effect: if you use pm-suspend once, the effective HIBERNATE_MODE in /sys/power/disk stays in "suspend", and
any subsequent pm-hibernate will also just do a suspend instead of "platform" or "shutdown".
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1394388/+subscriptions
Follow ups
References