Description of problem: After a password has been manually-changed for the root user, Fedora 29 fails to hibernate to disk. Version-Release number of selected component (if applicable): Fedora 29 How reproducible: Performed two clean installs of Fedora 29 and tested hibernation function after changing the root password Steps to Reproduce: Performed the following steps twice: 1. Performed clean installation of Fedora 29, confirmed hibernation was working 2. ran sudo passwd root to change the root account password 3. attempted hibernation and observed that it was no longer working Actual results: The command $ sudo systemctl hibernate results in the error: "Failed to hibernate system via logind: Resume is not configured, can't hibernate" Expected results: The computer should have entered hibernation to disk Additional info: /proc/cmdline contains the line: resume=/dev/mapper/luks-3cefe394-815d-4b54-8189-10657ed78b51 the /dev info for the swap in /proc/cmdline matches that found in /etc/fstab: dev/mapper/luks-3cefe394-815d-4b54-8189-10657ed78b51 swap /sys/power/disk contains the line: [platform] shutdown reboot suspend test_resume
The version of systemd is systemd 239 +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid
Hi, there is no way for the root password to be related to any of the hibernation checks. I'm 99.9% sure that this was just a coincidence. What is the rpm version that you have? Please install 'systemd-tests' rpm and execute: sudo SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/tests/test-sleep and paste or attach the output here.
The RPM version is 4.14.2.1 The results of running $ sudo SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/tests/test-sleep: Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory /* configuration */ Standby configured: no Suspend configured: yes Hibernate configured: yes Hibernate+Suspend (Hybrid-Sleep) configured: yes Hibernate+Reboot configured: yes Hibernate+Platform configured: yes Hibernate+Shutdown configured: yes Freeze configured: yes /* running system */ Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Suspend configured and possible: yes Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Enough swap for hibernation, Active(anon)=1164604 kB, size=67106812 kB, used=0 kB, threshold=98% Found container virtualization none. Failed to open "/boot/efi/loader/loader.conf": No such file or directory Failed to read boot config from "/boot/efi/loader/loader.conf": No such file or directory Failed to load bootspec config from "/boot/efi/loader": No such file or directory Cannot read boot configuration from ESP, assuming hibernation is not possible. Hibernation configured and possible: Advertise error Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Enough swap for hibernation, Active(anon)=1164896 kB, size=67106812 kB, used=0 kB, threshold=98% Failed to open "/boot/efi/loader/loader.conf": No such file or directory Failed to read boot config from "/boot/efi/loader/loader.conf": No such file or directory Failed to load bootspec config from "/boot/efi/loader": No such file or directory Cannot read boot configuration from ESP, assuming hibernation is not possible. Hybrid-sleep configured and possible: Advertise error Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Enough swap for hibernation, Active(anon)=1165188 kB, size=67106812 kB, used=0 kB, threshold=98% Failed to open "/boot/efi/loader/loader.conf": No such file or directory Failed to read boot config from "/boot/efi/loader/loader.conf": No such file or directory Failed to load bootspec config from "/boot/efi/loader": No such file or directory Cannot read boot configuration from ESP, assuming hibernation is not possible. Unable to hibernate system. Suspend-then-Hibernate configured and possible: no extent map information for /usr/lib/systemd/tests/test-sleep: start: 0 length: 20248 flags: 1 number of mapped extents: 1 extent count: 1 first extent location: 61973632
I have followed a suggestion supplied by Krause.Markus [Bug 1645870] and downgraded my systemd package from systemd-239-6.git9f3aed1.fc29 to systemd-239-3.fc29 and can report that my hibernation functionality is restored. The results of running $ sudo SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/tests/test-sleep: Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory /* configuration */ Standby configured: no Suspend configured: yes Hibernate configured: yes Hibernate+Suspend (Hybrid-Sleep) configured: yes Hibernate+Reboot configured: yes Hibernate+Platform configured: yes Hibernate+Shutdown configured: yes Freeze configured: yes /* running system */ Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Suspend configured and possible: yes Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Hibernation is possible, Active(anon)=785388 kB, size=67106812 kB, used=0 kB, threshold=98% Hibernation configured and possible: yes Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Hibernation is possible, Active(anon)=785388 kB, size=67106812 kB, used=0 kB, threshold=98% Hybrid-sleep configured and possible: yes Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory Hibernation is possible, Active(anon)=785388 kB, size=67106812 kB, used=0 kB, threshold=98% Suspend-then-Hibernate configured and possible: yes extent map information for /usr/lib/systemd/tests/test-sleep: start: 0 length: 21016 flags: 1 number of mapped extents: 1 extent count: 1 first extent location: 61962682
This should be fixed now. *** This bug has been marked as a duplicate of bug 1645870 ***