Skip to content

Commit

Permalink
systemd: Add handler ensuring machine-id always exists
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeycode committed Dec 15, 2024
1 parent 57c15c3 commit 27d4225
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
Binary file modified s/systemd/manifest.x86_64.bin
Binary file not shown.
17 changes: 9 additions & 8 deletions s/systemd/manifest.x86_64.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,7 @@
"/usr/share/man/man8/telinit.8",
"/usr/share/man/man8/udevadm.8",
"/usr/share/moss/triggers/sys.d/systemd_etcfiles.yaml",
"/usr/share/moss/triggers/sys.d/systemd_machine_id.yaml",
"/usr/share/moss/triggers/sys.d/systemd_presets.yaml",
"/usr/share/moss/triggers/sys.d/systemd_sysusers.yaml",
"/usr/share/moss/triggers/sys.d/systemd_tmpfiles.yaml",
Expand Down Expand Up @@ -1248,18 +1249,18 @@
"binary(timedatectl)",
"binary(udevadm)",
"binary(userdbctl)",
"soname(libcryptsetup-token-systemd-pkcs11.so(x86_64))",
"soname(libcryptsetup-token-systemd-tpm2.so(x86_64))",
"soname(cryptsetup/libcryptsetup-token-systemd-pkcs11.so(x86_64))",
"soname(cryptsetup/libcryptsetup-token-systemd-tpm2.so(x86_64))",
"soname(libnss_myhostname.so.2(x86_64))",
"soname(libnss_mymachines.so.2(x86_64))",
"soname(libnss_resolve.so.2(x86_64))",
"soname(libnss_systemd.so.2(x86_64))",
"soname(libsystemd-core-254.so(x86_64))",
"soname(libsystemd-shared-254.so(x86_64))",
"soname(libsystemd.so.0(x86_64))",
"soname(libudev.so.1(x86_64))",
"soname(pam_systemd.so(x86_64))",
"soname(pam_systemd_home.so(x86_64))",
"soname(security/pam_systemd.so(x86_64))",
"soname(security/pam_systemd_home.so(x86_64))",
"soname(systemd/libsystemd-core-254.so(x86_64))",
"soname(systemd/libsystemd-shared-254.so(x86_64))",
"sysbinary(halt)",
"sysbinary(init)",
"sysbinary(mount.ddi)",
Expand Down Expand Up @@ -2172,7 +2173,7 @@
"interpreter(/usr/lib/ld-linux-x86-64.so.2(x86_64))",
"soname(ld-linux-x86-64.so.2(x86_64))",
"soname(libc.so.6(x86_64))",
"soname(libsystemd-shared-254.so(x86_64))"
"soname(systemd/libsystemd-shared-254.so(x86_64))"
],
"files": [
"/usr/bin/networkctl",
Expand Down Expand Up @@ -2221,6 +2222,6 @@
}
},
"source-name": "systemd",
"source-release": "41",
"source-release": "42",
"source-version": "254.18"
}
14 changes: 14 additions & 0 deletions s/systemd/pkg/systemd_machine_id.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: systemd_machine_id
description: |
Run systemd-tmpfiles
before: systemd_etcfiles

handlers:
systemd_machine_id:
run: /usr/bin/systemd-machine-id-setup
args: []

paths:
"/usr/bin/systemd-machine-id-setup":
handlers:
- systemd_machine_id
3 changes: 2 additions & 1 deletion s/systemd/stone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
name : systemd
version : 254.18
release : 41
release : 42
summary : A System and Service Manager
license :
- GPL-2.0-or-later
Expand Down Expand Up @@ -163,6 +163,7 @@ install : |
%install_file %(pkgdir)/systemd_tmpfiles.yaml %(installroot)/usr/share/moss/triggers/sys.d/systemd_tmpfiles.yaml
%install_file %(pkgdir)/systemd_sysusers.yaml %(installroot)/usr/share/moss/triggers/sys.d/systemd_sysusers.yaml
%install_file %(pkgdir)/systemd_presets.yaml %(installroot)/usr/share/moss/triggers/sys.d/systemd_presets.yaml
%install_file %(pkgdir)/systemd_machine_id.yaml %(installroot)/usr/share/moss/triggers/sys.d/systemd_machine_id.yaml
# And transaction triggers
%install_file %(pkgdir)/systemd_hwdb.yaml %(installroot)/usr/share/moss/triggers/tx.d/systemd_hwdb.yaml

0 comments on commit 27d4225

Please sign in to comment.