Skip to content

Commit

Permalink
Fix automatic staging of updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aleskandro committed Nov 12, 2023
1 parent e8f1439 commit eb7228c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion microshift.Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN set -x; PACKAGES_INSTALL="NetworkManager-ovs cri-o cri-tools /tmp/rpms/*.rpm
&& ostree container commit

RUN set -x; sed -i \
's/AutomaticUpdatePolicy=.*/AutomaticUpdatePolicy=stage/' \
's/#AutomaticUpdatePolicy=.*/AutomaticUpdatePolicy=stage/' \
/etc/rpm-ostreed.conf \
&& systemctl preset-all \
&& ostree container commit
Expand All @@ -67,6 +67,7 @@ RUN HOME=/tmp RUNZSH=no CHSH=no ZSH=/usr/lib/ohmyzsh \
&& sed -i 's|^SHELL=.*|SHELL=/usr/bin/zsh|' /etc/default/useradd \
# ${VARIANT_ID^} is not posix compliant and is not parsed correctly by zsh \
&& sed -i 's/VARIANT_ID^/VARIANT_ID/' /etc/profile.d/toolbox.sh \
&& source /usr/share/zsh/30zinitrc.zsh
&& ostree container commit

#RUN set -x; update-crypto-policies --set legacy --no-reload && ostree container commit

0 comments on commit eb7228c

Please sign in to comment.