diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/files/0009-initrd-parse-etc.service.patch b/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/files/0009-initrd-parse-etc.service.patch new file mode 100644 index 00000000000..e3f00be4e3f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/files/0009-initrd-parse-etc.service.patch @@ -0,0 +1,29 @@ +From 65e3f4e837001f6f00359a779b6c5801566aa750 Mon Sep 17 00:00:00 2001 +From: Adrian Vladu <avladu@cloudbasesolutions.com> +Date: Wed, 25 Sep 2024 15:51:02 +0000 +Subject: [PATCH] Revert "Revert "initrd-parse-etc: override argv[0] to avoid + dracut issue"" + +This reverts commit 1c585a4ccda3258088d7bc27b27a314e7ed8be80. +--- + units/initrd-parse-etc.service.in | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/units/initrd-parse-etc.service.in b/units/initrd-parse-etc.service.in +index 1eef2bd9be..3dadab1123 100644 +--- a/units/initrd-parse-etc.service.in ++++ b/units/initrd-parse-etc.service.in +@@ -23,7 +23,9 @@ OnFailureJobMode=replace-irreversibly + [Service] + Type=oneshot + +-ExecStart={{LIBEXECDIR}}/systemd-sysroot-fstab-check ++# FIXME: once dracut is patched to install the symlink, change to: ++# ExecStart={{LIBEXECDIR}}/systemd-sysroot-fstab-check ++ExecStart=@{{SYSTEM_GENERATOR_DIR}}/systemd-fstab-generator systemd-sysroot-fstab-check + + # We want to enqueue initrd-cleanup.service/start after we finished the part + # above. It can't be part of the initial transaction, because non-oneshot units +-- +2.34.1 + diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-256.7.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-256.7.ebuild index e58c45b1651..b39ca12e056 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-256.7.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-256.7.ebuild @@ -265,6 +265,7 @@ src_prepare() { "${FILESDIR}/0005-systemd-Disable-SELinux-permissions-checks.patch" "${FILESDIR}/0006-Revert-getty-Pass-tty-to-use-by-agetty-via-stdin.patch" "${FILESDIR}/0007-units-Keep-using-old-journal-file-format.patch" + "${FILESDIR}/0009-initrd-parse-etc.service.patch" ) if ! use vanilla; then