Skip to content

Commit

Permalink
firstboot: disable existing repos before pivot
Browse files Browse the repository at this point in the history
On FCOS boot OS extensions are being installed, so in order to use
only shipped RPMs and avoid pulling in updates from public repos existing
repos need to be disabled
  • Loading branch information
vrutkovs committed Sep 23, 2020
1 parent 88baac2 commit 552f6d5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ contents: |
[Service]
Type=oneshot
RemainAfterExit=yes
# Disable existing repos (if any) so that OS extensions would use embedded RPMs only
ExecStartPre=-/usr/bin/sh -c "sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/*.repo"
ExecStart=/run/bin/machine-config-daemon firstboot-complete-machineconfig
{{if .Proxy -}}
Expand Down

0 comments on commit 552f6d5

Please sign in to comment.