Skip to content

Commit

Permalink
fix: ensure /var/run is a symlink to /run
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeShortCloud committed Dec 31, 2024
1 parent fad8c4d commit 10ec55d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion fedora-coreos/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
&& chmod -R 1777 /var/tmp \
&& rm -r -f /var/run \
&& ln -s /run /var/run
12 changes: 9 additions & 3 deletions ucore/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
&& chmod -R 1777 /var/tmp \
&& rm -r -f /var/run \
&& ln -s /run /var/run

0 comments on commit 10ec55d

Please sign in to comment.