Bug#779412: block devices loosing state after resume: trigger udev rules to re-apply settings

Michael Biebl biebl at debian.org
Tue Apr 21 14:18:17 BST 2015


Am 28.02.2015 um 09:30 schrieb Chris:

> A draft for such a central systemd unit file:
> 
> [Unit]
> Description=Trigger all block device udev rules on resume, to re-apply all non-permanent device settings (e.g. smartctl and hdparm rules).
> After=suspend.target After=hibernate.target
> After=hybrid-sleep.target

This does not work. Ordering After=foo.target does *not* guarantee that
the service is run on resume.
I already mentioned that, when a similar file was added to anacron [1].
Unfortunately it was applied anyway and now this file is copied over and
over again and posted to various bug reports.

Michael


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744753#124
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20150421/1fd7aba5/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list