Skip to content

Commit

Permalink
Disable added repos before signing image
Browse files Browse the repository at this point in the history
  • Loading branch information
franute committed Dec 17, 2024
1 parent d6a38d1 commit d96c5fe
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions files/scripts/dev/disableRepos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/bash

set -eoux pipefail

sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-cisco-openh264.repo

sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/atim-lazygit-fedora-41.repo
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/atim-starship-fedora-41.repo
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/atim-ubuntu-fonts-fedora-41.repo
7 changes: 7 additions & 0 deletions files/scripts/home/disableRepos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/bash

set -eoux pipefail

sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-cisco-openh264.repo

sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/atim-ubuntu-fonts-fedora-41.repo
4 changes: 4 additions & 0 deletions recipes/dev/dev-recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ modules:
file-conflict-policy: skip

- from-file: common/autofirma.yml

- type: script
scripts:
- dev/disableRepos.sh
4 changes: 4 additions & 0 deletions recipes/recipe-home.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ modules:

- from-file: common/autofirma.yml

- type: script
scripts:
- home/disableRepos.sh

- type: signing # this sets up the proper policy & signing files for signed images to work fully

0 comments on commit d96c5fe

Please sign in to comment.