Public bug reported: Hello,
while trying to make suspend to disk work on MacBook Pro 12,1 (early 2015) I found that brcmfmac module must be unloaded before hibernating. So I put brcmfmac script handling that into existing /lib/systemd/system-sleep where 2 script where already present (from hdparm and unattended-upgrades packages). After issuing systemctl hibernate command I found that the script was not executed. By looking into syslog I found an error: run-parts: failed to open directory /usr/lib/systemd/system-sleep: No such file or directory because /usr/lib/systemd/system-sleep directory indeed does not exist. After making an symlink named /usr/lib/systemd/system-sleep pointing to /lib/systemd/system-sleep it started to work as expected. $ lsb_release -rd Description: Ubuntu 18.04.2 LTS Release: 18.04 $ apt-cache policy debianutils debianutils: Instalovaná verze: 4.8.4 Kandidát: 4.8.4 Tabulka verzí: *** 4.8.4 500 500 http://cz.archive.ubuntu.com/ubuntu bionic/main amd64 Packages 100 /var/lib/dpkg/status ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: debianutils 4.8.4 ProcVersionSignature: Ubuntu 4.18.0-16.17~18.04.1-generic 4.18.20 Uname: Linux 4.18.0-16-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.6 Architecture: amd64 CurrentDesktop: XFCE Date: Sun Mar 3 00:12:30 2019 Dependencies: gcc-8-base 8.2.0-1ubuntu2~18.04 libc6 2.27-3ubuntu1 libgcc1 1:8.2.0-1ubuntu2~18.04 InstallationDate: Installed on 2019-02-28 (1 days ago) InstallationMedia: Xubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210) SourcePackage: debianutils UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: debianutils (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug bionic -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to debianutils in Ubuntu. https://bugs.launchpad.net/bugs/1818376 Title: run-parts tries to execute scripts in /usr/lib/systemd/system-sleep instead of /lib/systemd/system-sleep Status in debianutils package in Ubuntu: New Bug description: Hello, while trying to make suspend to disk work on MacBook Pro 12,1 (early 2015) I found that brcmfmac module must be unloaded before hibernating. So I put brcmfmac script handling that into existing /lib/systemd/system-sleep where 2 script where already present (from hdparm and unattended-upgrades packages). After issuing systemctl hibernate command I found that the script was not executed. By looking into syslog I found an error: run-parts: failed to open directory /usr/lib/systemd/system-sleep: No such file or directory because /usr/lib/systemd/system-sleep directory indeed does not exist. After making an symlink named /usr/lib/systemd/system-sleep pointing to /lib/systemd/system-sleep it started to work as expected. $ lsb_release -rd Description: Ubuntu 18.04.2 LTS Release: 18.04 $ apt-cache policy debianutils debianutils: Instalovaná verze: 4.8.4 Kandidát: 4.8.4 Tabulka verzí: *** 4.8.4 500 500 http://cz.archive.ubuntu.com/ubuntu bionic/main amd64 Packages 100 /var/lib/dpkg/status ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: debianutils 4.8.4 ProcVersionSignature: Ubuntu 4.18.0-16.17~18.04.1-generic 4.18.20 Uname: Linux 4.18.0-16-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.6 Architecture: amd64 CurrentDesktop: XFCE Date: Sun Mar 3 00:12:30 2019 Dependencies: gcc-8-base 8.2.0-1ubuntu2~18.04 libc6 2.27-3ubuntu1 libgcc1 1:8.2.0-1ubuntu2~18.04 InstallationDate: Installed on 2019-02-28 (1 days ago) InstallationMedia: Xubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210) SourcePackage: debianutils UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/debianutils/+bug/1818376/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp