Bug 991350

Summary: systemctl hibernate tries to call /usr/bin/systemd-sleep-grub which has been removed
Product: [openSUSE] openSUSE Distribution Reporter: Thomas Leineweber <suse>
Component: BasesystemAssignee: systemd maintainers <systemd-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: thomas.blume
Version: Leap 42.2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Thomas Leineweber 2016-07-29 22:25:11 UTC
with a current Leap 42.2 systemctl hibernate tries to call /usr/bin/systemd-sleep-grub, but fails:

Jul 30 00:04:00 x1.box systemd[1]: Starting Hibernate...
Jul 30 00:04:00 x1.box systemd[4154]: systemd-hibernate.service: Failed at step EXEC spawning /usr/bin/systemd-sleep-grub: No such file or directory
Jul 30 00:04:00 x1.box systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=203/EXEC
Jul 30 00:04:00 x1.box systemd[1]: Failed to start Hibernate.
Jul 30 00:04:00 x1.box systemd[1]: Dependency failed for Hibernate.

The script was removed in https://build.opensuse.org/request/show/407291. Nevertheless, hibernation tries to call this script. It has not been removed from the service /usr/lib/systemd/system/systemd-hibernate.service

[Service]
Type=oneshot
ExecStart=/usr/bin/systemd-sleep-grub pre
ExecStart=/usr/lib/systemd/systemd-sleep hibernate
ExecStopPost=/usr/bin/systemd-sleep-grub post

Version information:

> rpm -q systemd
systemd-228-5.3.x86_64
Comment 1 Thomas Blume 2016-08-01 11:11:59 UTC
Duplicate of bug 941758.
Sleep functionality has been moved to a grub2 subpackage.

*** This bug has been marked as a duplicate of bug 941758 ***