Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #26 from cgwalters/cleanups
Browse files Browse the repository at this point in the history
Misc cleanups + regenerate initramfs (to pick up ostree changes)
  • Loading branch information
sallyom authored Feb 12, 2024
2 parents 2733e24 + fb4b003 commit cb6aaec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions eln-dev/Containerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM quay.io/centos-bootc/fedora-bootc:eln
COPY *.repo /etc/yum.repos.d/
RUN dnf --disablerepo='*' --enablerepo=copr-coreos-continuous --enablerepo=copr-rhcontainerbot-bootc -y distro-sync && \
dnf clean all && rm -rf /var/* && \
ostree container commit
dnf clean all
# Note we need to regenerate the initramfs because ostree is included in it
RUN set -x; kver=$(cd /usr/lib/modules && echo *); dracut -vf /usr/lib/modules/$kver/initramfs.img $kver
6 changes: 3 additions & 3 deletions stream9-dev/Containerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM quay.io/centos-bootc/centos-bootc:stream9
COPY *.repo /etc/yum.repos.d/
RUN dnf --disablerepo='*' --enablerepo=copr-coreos-continuous --enablerepo=copr-rhcontainerbot-bootc -y distro-sync && \
rpm -q bootc || dnf -y install bootc && \
dnf clean all && rm -rf /var/* && \
ostree container commit
dnf clean all
# Note we need to regenerate the initramfs because ostree is included in it
RUN set -x; kver=$(cd /usr/lib/modules && echo *); dracut -vf /usr/lib/modules/$kver/initramfs.img $kver

0 comments on commit cb6aaec

Please sign in to comment.