]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Mark /etc /var as updated in a finalize script
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 27 Mar 2025 13:31:55 +0000 (14:31 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 28 Mar 2025 08:49:17 +0000 (09:49 +0100)
Let's make sure we don't run ldconfig.service and other services
again on first boot.

mkosi.finalize [new file with mode: 0755]

diff --git a/mkosi.finalize b/mkosi.finalize
new file mode 100755 (executable)
index 0000000..e6aeded
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+# SPDX-License-Identifier: CC-0
+set -e
+
+touch -r "$BUILDROOT/usr" "$BUILDROOT/etc/.updated" "$BUILDROOT/var/.updated"