generated from ublue-os/base
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(WIP): use legacy vs main concept for akmods (workflow not co…
…mplete)
- Loading branch information
Showing
8 changed files
with
92 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
set -ouex pipefail | ||
|
||
RELEASE="$(rpm -E %fedora)" | ||
|
||
wget -P /tmp/rpms \ | ||
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${RELEASE}.noarch.rpm \ | ||
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${RELEASE}.noarch.rpm | ||
|
||
rpm-ostree install \ | ||
/tmp/rpms/*.rpm \ | ||
fedora-repos-archive | ||
|
||
# force use of single rpmfusion mirror | ||
sed -i.bak 's%^metalink=%#metalink=%' /etc/yum.repos.d/rpmfusion-*.repo | ||
sed -i 's%^#baseurl=http://download1.rpmfusion.org%baseurl=http://mirrors.ocf.berkeley.edu/rpmfusion%' /etc/yum.repos.d/rpmfusion-*.repo | ||
# after F39 launches, bump to 40 | ||
if [[ "${FEDORA_MAJOR_VERSION}" -ge 39 ]]; then | ||
sed -i 's%free/fedora/releases%free/fedora/development%' /etc/yum.repos.d/rpmfusion-*.repo | ||
fi | ||
|
||
# run common packages script | ||
/tmp/packages.sh | ||
|
||
## install packages direct from github | ||
/tmp/github-release-install.sh sigstore/cosign x86_64 | ||
|
||
# reset forced use of single rpmfusion mirror | ||
rename -v .repo.bak .repo /etc/yum.repos.d/rpmfusion-*repo.bak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.