Skip to content

Commit

Permalink
feat(live): add Agama repo depending on the distro
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jul 18, 2024
1 parent 78aa3b4 commit 23d55bd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
8 changes: 8 additions & 0 deletions live/root/etc/zypp/repos.d/agama-SLES.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[agama-SLES]
name=Agama (SLES)
type=rpm-md
enabled=0
autorefresh=1
gpgcheck=1
baseurl=http://download.suse.de/ibs/Devel:/YaST:/Agama:/Head/SLES-16.0/
gpgkey=http://download.suse.de/ibs/Devel:/YaST:/Agama:/Head/SLES-16.0/repodata/repomd.xml.key
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[agama-devel]
name=Agama-Devel
[agama-openSUSE_Tumbleweed]
name=Agama-Devel (openSUSE Tumbleweed)
type=rpm-md
enabled=1
enabled=0
autorefresh=1
gpgcheck=1
baseurl=https://download.opensuse.org/repositories/systemsmanagement:/Agama:/Devel/openSUSE_Tumbleweed/
Expand Down
7 changes: 7 additions & 0 deletions live/src/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ echo "Configure image: [$kiwi_iname]..."
# setup baseproduct link
suseSetupProduct

# enable the corresponding repository
DISTRO=$(grep "^NAME" /etc/os-release | cut -f2 -d\= | tr -d '"' | tr " " "_")
REPO="agama-${DISTRO}"
if zypper lr $REPO; then
zypper mr --enable $REPO
fi

# configure the repositories in the Live system
# import the OBS key for the systemsmanagement OBS project
rpm --import /tmp/systemsmanagement_key.gpg
Expand Down

0 comments on commit 23d55bd

Please sign in to comment.