public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Stephen Gallagher <sgallagh@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: Work around upgrade bug
Date: Mon, 10 Aug 2026 09:34:51 GMT [thread overview]
Message-ID: <178635449166.1.17587939371570463096.rpms-fedora-release-d4442fbec341@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/fedora-release
Branch : f45
Commit : d4442fbec341ca3205c7b57dafccdb8bfd14aa0f
Author : Stephen Gallagher <sgallagh@redhat.com>
Date : 2019-06-06T12:49:24-04:00
Stats : +13/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-release/c/d4442fbec341ca3205c7b57dafccdb8bfd14aa0f?branch=f45
Log:
Work around upgrade bug
Resolves: rhbz#1710543
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
---
diff --git a/fedora-release.spec b/fedora-release.spec
index a0891df..8629ea7 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -520,6 +520,18 @@ sed -e "s#\$version#%{bug_version}#g" -e 's/<!--.*-->//;/^$/d' %{SOURCE19} > %{b
install -d %{buildroot}%{_sysconfdir}/swid/swidtags.d
ln -s %{_swidtagdir} %{buildroot}%{_sysconfdir}/swid/swidtags.d/fedoraproject.org
+# Work around upgrade bug
+# See https://bugzilla.redhat.com/show_bug.cgi?id=1710543
+# If we are upgrading from a system with two fedora-release-$EDITION packages
+# on it, if DNF upgrade decides to keep the drop that doesn't match
+# /usr/lib/variant, it will forcibly create a /usr/lib/os-release symlink
+# after the new upgraded package is installed, resulting in an unbootable
+# system. As a hack, we'll assume ownership of /usr/lib/variant and set it to
+# a nonexistent edition name, to ensure that no symlink gets created.
+# This hack and this file can be dropped in Fedora 32, since we don't support
+# upgrades from Fedora N-3.
+echo _DISABLED_ > %{buildroot}%{_prefix}/lib/variant
+
%files common
%license licenses/LICENSE licenses/Fedora-Legal-README.txt
@@ -535,6 +547,7 @@ ln -s %{_swidtagdir} %{buildroot}%{_sysconfdir}/swid/swidtags.d/fedoraproject.or
%attr(0644,root,root) %{_prefix}/lib/issue.net
%config(noreplace) %{_sysconfdir}/issue.net
%dir %{_sysconfdir}/issue.d
+%attr(0644,root,root) %{_prefix}/lib/variant
%attr(0644,root,root) %{_rpmconfigdir}/macros.d/macros.dist
%dir %{_prefix}/lib/systemd/user-preset/
%{_prefix}/lib/systemd/user-preset/90-default-user.preset
reply other threads:[~2026-08-10 9:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178635449166.1.17587939371570463096.rpms-fedora-release-d4442fbec341@fedoraproject.org \
--to=sgallagh@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox