Skip to content

Commit 3cdeada

Browse files
committed
Disable bootc automatic update check and reboot
Mask the systemd timer that continually checks for an update container image and will apply if one is found as it causes a reboot. Signed-off-by: James Slagle <[email protected]>
1 parent 7ea2054 commit 3cdeada

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bootc/Containerfile.centos9

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ RUN ln -s /etc/sysconfig/network-scripts/ifdown /usr/sbin/ifdown
6565
COPY ansible-facts/bootc.fact /etc/ansible/facts.d/bootc.fact
6666
RUN chmod +x /etc/ansible/facts.d/bootc.fact
6767

68+
# Disable automatic update check and reboot
69+
RUN systemctl mask bootc-fetch-apply-updates.timer
70+
6871
# This should be the last command
6972
# https://docs.fedoraproject.org/en-US/bootc/building-containers/#_linting
7073
RUN bootc container lint

0 commit comments

Comments
 (0)