bugfix:OMPUB-1239:Set fstrim.timer oncalendar to daily.

This commit is contained in:
fumingwei
2024-04-23 11:59:03 +08:00
committed by 付明卫
parent 642233dd47
commit 89751448f9
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
[Timer]
OnCalendar=
OnCalendar=daily

View File

@@ -57,6 +57,13 @@
- tsg-os-HAL.conf
when: runtime_env == 'TSG-X-P0906'
- name: "Override fstrim.timer OnCalendar"
copy:
src: "{{ role_path }}/files/timer.d/timer_override_oncalendar.conf"
dest: /usr/lib/systemd/system/fstrim.timer.d/
mode: 0644
when: runtime_env == 'TSG-X-P0906'
- name: "enable fstrim.timer"
systemd:
name: fstrim.timer