Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Containerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ FROM quay.io/fedora/fedora-bootc:45
COPY --from=nushell /usr/bin/nu /usr/bin/nu
RUN printf '/bin/nu\n/usr/bin/nu\n' >> /etc/shells

# Weekly bootc update fetch
COPY systemd/bootc-fetch-updates.service /usr/lib/systemd/system/
COPY systemd/bootc-fetch-updates.timer /usr/lib/systemd/system/
RUN systemctl enable bootc-fetch-updates.timer

COPY yum-repos/custom.repo /etc/yum.repos.d/custom.repo

RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
Expand Down
5 changes: 5 additions & 0 deletions Containerfile.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ FROM quay.io/fedora/fedora-kinoite:45
COPY --from=nushell /usr/bin/nu /usr/bin/nu
RUN printf '/bin/nu\n/usr/bin/nu\n' >> /etc/shells

# Weekly bootc update fetch
COPY systemd/bootc-fetch-updates.service /usr/lib/systemd/system/
COPY systemd/bootc-fetch-updates.timer /usr/lib/systemd/system/
RUN systemctl enable bootc-fetch-updates.timer

COPY yum-repos/custom.repo /etc/yum.repos.d/custom.repo

RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
Expand Down
5 changes: 5 additions & 0 deletions Containerfile.laptop
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ COPY dracut.conf /usr/lib/dracut/dracut.conf.d/50-custom-ostree.conf
COPY --from=nushell /usr/bin/nu /usr/bin/nu
RUN printf '/bin/nu\n/usr/bin/nu\n' >> /etc/shells

# Weekly bootc update fetch
COPY systemd/bootc-fetch-updates.service /usr/lib/systemd/system/
COPY systemd/bootc-fetch-updates.timer /usr/lib/systemd/system/
RUN systemctl enable bootc-fetch-updates.timer

COPY yum-repos/custom.repo /etc/yum.repos.d/custom.repo

RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
Expand Down
8 changes: 8 additions & 0 deletions systemd/bootc-fetch-updates.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Fetch bootc updates
Documentation=man:bootc(8)
ConditionPathExists=/run/ostree-booted

[Service]
Type=oneshot
ExecStart=/usr/bin/bootc upgrade --quiet
12 changes: 12 additions & 0 deletions systemd/bootc-fetch-updates.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Weekly bootc update fetch
Documentation=man:bootc(8)
ConditionPathExists=/run/ostree-booted

[Timer]
OnCalendar=Mon
Persistent=true
RandomizedDelaySec=15min

[Install]
WantedBy=timers.target