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 Server Team, 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1394388/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs