Skip to content

Commit d69621d

Browse files
jeckersbcgwalters
authored andcommitted
provision-derived: Don't hardcode bootupd version
This got bumped recently so the old version is no longer available. Signed-off-by: John Eckersberg <jeckersb@redhat.com>
1 parent 47c3620 commit d69621d

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

hack/provision-derived.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,23 @@ repo_gpgcheck=0
107107
enabled=1
108108
enabled_metadata=1
109109
REPOEOF
110-
dnf -y install bootupd-0.2.32.43.g38208d3
110+
111+
# This unfortunately has "older" versions with higher NEVRA:
112+
#
113+
# # dnf --disablerepo=* --enablerepo=copr:copr.fedorainfracloud.org:group_CoreOS:continuous repoquery bootupd 2> /dev/null
114+
# bootupd-0:0.2.32.45.gb483a63-1.fc45.x86_64
115+
# bootupd-0:202501200321.0.2.25.65.ge296f82-1.fc42.src
116+
# bootupd-0:202501200321.0.2.25.65.ge296f82-1.fc42.x86_64
117+
# bootupd-0:202501210627.0.2.25.67.gefe41b6-1.fc42.src
118+
#
119+
# So we need to be more selective, but also be dynamic to grab newer
120+
# versions
121+
#
122+
# The subscription-manager plugin needs to be disabled because it
123+
# likes to write warnings to stdout which corrupts the NEVRA output
124+
# we're going for here...
125+
bootupd_nevra=$(dnf --disableplugin=subscription-manager --disablerepo=* --enablerepo=copr:copr.fedorainfracloud.org:group_CoreOS:continuous repoquery --latest-limit 1 --arch "$(uname -m)" "bootupd-0.2.*")
126+
dnf -y install ${bootupd_nevra}
111127
rm -f /etc/yum.repos.d/coreos-continuous.repo
112128

113129
dnf clean all

0 commit comments

Comments
 (0)