From 10ec55deb3fe70bfd13a7330dd1df76aefbda4c3 Mon Sep 17 00:00:00 2001 From: Luke Short Date: Tue, 31 Dec 2024 13:44:18 -0700 Subject: [PATCH] fix: ensure /var/run is a symlink to /run --- fedora-coreos/Containerfile | 4 +++- ucore/Containerfile | 12 +++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/fedora-coreos/Containerfile b/fedora-coreos/Containerfile index c45ded7..88c92fd 100644 --- a/fedora-coreos/Containerfile +++ b/fedora-coreos/Containerfile @@ -42,4 +42,6 @@ RUN --mount=type=cache,dst=/var/cache/rpm-ostree \ && ostree container commit \ && mkdir -p /var/lib && mv /staged-alternatives /var/lib/alternatives \ && mkdir -p /var/tmp \ - && chmod -R 1777 /var/tmp \ No newline at end of file + && chmod -R 1777 /var/tmp \ + && rm -r -f /var/run \ + && ln -s /run /var/run diff --git a/ucore/Containerfile b/ucore/Containerfile index 8d50c8a..dbb17c7 100644 --- a/ucore/Containerfile +++ b/ucore/Containerfile @@ -51,7 +51,9 @@ RUN --mount=type=cache,dst=/var/cache/rpm-ostree \ && ostree container commit \ && mkdir -p /var/lib && mv /staged-alternatives /var/lib/alternatives \ && mkdir -p /var/tmp \ - && chmod -R 1777 /var/tmp + && chmod -R 1777 /var/tmp \ + && rm -r -f /var/run \ + && ln -s /run /var/run # ucore image section FROM ucore-minimal AS ucore @@ -69,7 +71,9 @@ RUN --mount=type=cache,dst=/var/cache/rpm-ostree \ && ostree container commit \ && mkdir -p /var/lib && mv /staged-alternatives /var/lib/alternatives \ && mkdir -p /var/tmp \ - && chmod -R 1777 /var/tmp + && chmod -R 1777 /var/tmp \ + && rm -r -f /var/run \ + && ln -s /run /var/run # ucore-hci image section @@ -88,4 +92,6 @@ RUN --mount=type=cache,dst=/var/cache/rpm-ostree \ && ostree container commit \ && mkdir -p /var/lib && mv /staged-alternatives /var/lib/alternatives \ && mkdir -p /var/tmp \ - && chmod -R 1777 /var/tmp \ No newline at end of file + && chmod -R 1777 /var/tmp \ + && rm -r -f /var/run \ + && ln -s /run /var/run