Skip to content

Commit

Permalink
fix: move /etc/ to /usr/etc/ (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept committed Aug 28, 2023
1 parent 8a9179b commit 1484594
Show file tree
Hide file tree
Showing 19 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS bluefin
ARG IMAGE_NAME="${IMAGE_NAME}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"

COPY etc /etc
COPY usr /usr
COPY etc/yum.repos.d/ /etc/yum.repos.d/

COPY --from=cgr.dev/chainguard/cosign:latest /usr/bin/cosign /usr/bin/cosign

Expand All @@ -24,8 +24,6 @@ ADD build.sh /tmp/build.sh

RUN /tmp/build.sh && \
pip install --prefix=/usr yafti && \
systemctl unmask dconf-update.service && \
systemctl enable dconf-update.service && \
systemctl enable rpm-ostree-countme.service && \
systemctl enable tailscaled.service && \
fc-cache -f /usr/share/fonts/ubuntu && \
Expand All @@ -51,8 +49,8 @@ ARG IMAGE_NAME="${IMAGE_NAME}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"

# dx specific files come from the dx directory in this repo
COPY dx/etc /etc
COPY dx/usr /usr
COPY dx/etc/yum.repos.d/ /etc/yum.repos.d/
COPY workarounds.sh /tmp/workarounds.sh

RUN wget https://copr.fedorainfracloud.org/coprs/ganto/lxc4/repo/fedora-"${FEDORA_MAJOR_VERSION}"/ganto-lxc4-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/ganto-lxc4-fedora-"${FEDORA_MAJOR_VERSION}".repo
Expand Down Expand Up @@ -112,7 +110,6 @@ RUN ostree container commit
# Image for Framework laptops
FROM bluefin AS bluefin-framework

COPY framework/etc /etc
COPY framework/usr /usr

RUN rpm-ostree install tlp tlp-rdw stress-ng
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions usr/lib/systemd/system-preset/95-dconf-update.preset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enable dconf-update.service

0 comments on commit 1484594

Please sign in to comment.