Skip to content

Commit

Permalink
Merge pull request #682 from tsorya/igal/disable
Browse files Browse the repository at this point in the history
RHELAI-524: Disable bootc auto upgrade service
  • Loading branch information
rhatdan authored Jul 21, 2024
2 parents ca35deb + 0d352b0 commit 5378fb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions training/nvidia-bootc/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ RUN mv /etc/selinux /etc/selinux.tmp \
sed -i -e "/^VARIANT=/ {s/^VARIANT=.*/VARIANT=\"RHEL AI\"/; t}" -e "\$aVARIANT=\"RHEL AI\"" /usr/lib/os-release; \
sed -i -e "/^VARIANT_ID=/ {s/^VARIANT_ID=.*/VARIANT_ID=rhel_ai/; t}" -e "\$aVARIANT_ID=rhel_ai" /usr/lib/os-release; \
sed -i -e "/^RHEL_AI_VERSION_ID=/ {s/^RHEL_AI_VERSION_ID=.*/RHEL_AI_VERSION_ID='${IMAGE_VERSION_ID}'/; t}" -e "\$aRHEL_AI_VERSION_ID='${IMAGE_VERSION_ID}'" /usr/lib/os-release; \
# disable auto upgrade service
rm -f /usr/lib/systemd/system/default.target.wants/bootc-fetch-apply-updates.timer; \
fi \
&& dnf clean all \
&& ln -s ../cloud-init.target /usr/lib/systemd/system/default.target.wants \
Expand Down

0 comments on commit 5378fb0

Please sign in to comment.