From 181fc1e1d19ec7b697dd770932e092332bf0ffcf Mon Sep 17 00:00:00 2001 From: bwt Date: Thu, 3 Mar 2022 10:05:09 -0500 Subject: [PATCH] Added sync hook (for flash-based roots) --- zzz_sync.hook | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 zzz_sync.hook 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