summaryrefslogtreecommitdiff
path: root/pcr/systemd-knock/systemd-hwdb.hook
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/systemd-knock/systemd-hwdb.hook')
-rw-r--r--pcr/systemd-knock/systemd-hwdb.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/pcr/systemd-knock/systemd-hwdb.hook b/pcr/systemd-knock/systemd-hwdb.hook
new file mode 100644
index 000000000..d7c987724
--- /dev/null
+++ b/pcr/systemd-knock/systemd-hwdb.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib/udev/hwdb.d/*
+
+[Action]
+Description = Updating udev hardware database...
+When = PostTransaction
+Exec = /usr/bin/systemd-hwdb --usr update