Skip to content

Commit

Permalink
feat: Add media-automount-generator (#2247)
Browse files Browse the repository at this point in the history
* feat: Add media-automount-generator

See https://github.com/Zeglius/media-automount-generator

* fix(media-automount): Bump version 0.2.0 -> 0.2.1

Necessary to fix a condition race.

* refactor(media-automount): Move default config to media-automount.
Bump version 0.2.1 -> 0.2.2
  • Loading branch information
Zeglius authored Feb 11, 2025
1 parent f964041 commit e25e48b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,18 @@ RUN --mount=type=cache,dst=/var/cache/libdnf5 \
curl -Lo /usr/share/bash-prexec https://raw.githubusercontent.com/ublue-os/bash-preexec/master/bash-preexec.sh &&\
/ctx/cleanup

# media-automount-generator, mount non-removable device partitions automatically under /media/media-automount/
RUN --mount=type=cache,dst=/var/cache/libdnf5 \
--mount=type=cache,dst=/var/cache/rpm-ostree \
--mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=tmpfs,dst=/tmp \
if ! hash git; then dnf5 -yq --setopt=install_weak_deps=0 git; done && \
cd $(mktemp -d) && \
curl -fsSLo - https://github.com/Zeglius/media-automount-generator/archive/refs/tags/v0.2.2.tar.gz | \
tar -xz --strip-components=1 && \
./install.sh && \
/ctx/cleanup

# Cleanup & Finalize
COPY system_files/overrides /
RUN --mount=type=cache,dst=/var/cache/libdnf5 \
Expand Down

0 comments on commit e25e48b

Please sign in to comment.