diff --git a/zzz_sync.hook b/zzz_sync.hook new file mode 100644 index 0000000..68f9798 --- /dev/null +++ b/zzz_sync.hook @@ -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