On Wed, Sep 27, 2017 at 11:54:29PM +0200, Germano Massullo wrote:
> It might be that systemd does not like that rc.local is owned
> by "user" rather then "root"
Unfortunately
# chown root:root /etc/rc.d/rc.local
did not solve the problem, instead manually running the script as root,
changed the
/sys/class/scsi_host/host0/link_power_management_policy
state to
med_power_with_dipm
(No idea why rc.local is not working for you.)
A simpler option might be to use add a tmpfiles.d entry:
# /etc/tmpfiles.d/sata.conf
w /sys/class/scsi_host/host*/link_power_management_policy - - - - med_power_with_dipm
Zbyszek