Skip to content

Commit

Permalink
Fix issue when changing APM, spin-down time or write cache settings o…
Browse files Browse the repository at this point in the history
…f disks.

Do not call the /lib/udev/hdparm script using the canonical device path because the settings are addressed by paths like /dev/disk/by-id/ata-ST4000NM0033-9ZM170_Z1Z5YS79 and not /dev/sd<X> in /etc/hdparm.conf.

Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information
votdev committed Oct 20, 2022
1 parent 6120438 commit 2e787de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deb/openmediavault/debian/changelog
@@ -1,6 +1,7 @@
openmediavault (6.0.45-1) stable; urgency=low

*
* Fix issue when changing APM, spin-down time or write cache
settings of disks.

-- Volker Theile <volker.theile@openmediavault.org> Sun, 16 Oct 2022 01:53:06 +0200

Expand Down
2 changes: 1 addition & 1 deletion deb/openmediavault/srv/salt/omv/deploy/hdparm/default.sls
Expand Up @@ -51,7 +51,7 @@ reload_hdparm_{{ device.devicefile }}:
cmd.run:
- name: "/lib/udev/hdparm"
- env:
- DEVNAME: "{{ device.devicefile | path_realpath }}"
- DEVNAME: "{{ device.devicefile }}"
- onchanges:
- file: configure_hdparm_conf
{% endfor %}

0 comments on commit 2e787de

Please sign in to comment.