Added sync hook (for flash-based roots)

This commit is contained in:
Brainwrecked Tech 2022-03-03 10:05:09 -05:00
parent 54d9f72536
commit 181fc1e1d1

14
zzz_sync.hook Normal file
View File

@ -0,0 +1,14 @@
# Force disks to sync to reduce the risk of data corruption
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Description = sync all file systems
Depends = coreutils
When = PostTransaction
Exec = /usr/bin/sync