mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-01-03 11:00:49 -05:00
add xfs_fsr service run before fstrim service
This commit is contained in:
parent
124897ccba
commit
b67d037a5e
@ -1,3 +1,7 @@
|
||||
[Unit]
|
||||
Wants=xfs_fsr.service
|
||||
After=xfs_fsr.service
|
||||
|
||||
[Service]
|
||||
CPUSchedulingPolicy=idle
|
||||
IOSchedulingClass=idle
|
||||
|
12
systemd/system/xfs_fsr.service
Normal file
12
systemd/system/xfs_fsr.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=XFS filesystem reorganization
|
||||
|
||||
[Service]
|
||||
CPUSchedulingPolicy=idle
|
||||
ExecStart=/usr/bin/xfs_fsr -f /var/lib/.fsrlast
|
||||
IOSchedulingClass=idle
|
||||
IPAddressDeny=any
|
||||
MemoryDenyWriteExecute=true
|
||||
PrivateIPC=true
|
||||
PrivateNetwork=true
|
||||
Type=oneshot
|
Loading…
Reference in New Issue
Block a user