1
0
forked from rpms/anaconda

AlmaLinux changes: Enable Btrfs support

This commit is contained in:
Neal Gompa 2025-05-28 09:24:33 -04:00
parent c64b17e736
commit 877488df40
6 changed files with 95 additions and 4 deletions

View File

@ -1,7 +1,7 @@
From 2b5791f0ed5a4b6886b49eeefeed66511e7218ce Mon Sep 17 00:00:00 2001 From 2b5791f0ed5a4b6886b49eeefeed66511e7218ce Mon Sep 17 00:00:00 2001
From: Andrew Lukoshko <alukoshko@almalinux.org> From: Andrew Lukoshko <alukoshko@almalinux.org>
Date: Fri, 9 Aug 2024 16:50:16 +0000 Date: Fri, 9 Aug 2024 16:50:16 +0000
Subject: [PATCH 1/3] Add Minimal repo support Subject: [PATCH 1/5] Add Minimal repo support
--- ---
pyanaconda/core/constants.py | 1 + pyanaconda/core/constants.py | 1 +

View File

@ -1,7 +1,7 @@
From 7d0eaa2ebb521e327b98171689e4731a7db5d503 Mon Sep 17 00:00:00 2001 From 7d0eaa2ebb521e327b98171689e4731a7db5d503 Mon Sep 17 00:00:00 2001
From: Andrew Lukoshko <alukoshko@almalinux.org> From: Andrew Lukoshko <alukoshko@almalinux.org>
Date: Fri, 9 Aug 2024 16:59:05 +0000 Date: Fri, 9 Aug 2024 16:59:05 +0000
Subject: [PATCH 2/3] Change anaconda background color Subject: [PATCH 2/5] Change anaconda background color
--- ---
data/anaconda-gtk.css | 2 +- data/anaconda-gtk.css | 2 +-

View File

@ -1,7 +1,7 @@
From 36a77712950b1462573ade28c1bd6f175a201174 Mon Sep 17 00:00:00 2001 From 36a77712950b1462573ade28c1bd6f175a201174 Mon Sep 17 00:00:00 2001
From: Andrew Lukoshko <alukoshko@almalinux.org> From: Andrew Lukoshko <alukoshko@almalinux.org>
Date: Fri, 9 Aug 2024 17:03:55 +0000 Date: Fri, 9 Aug 2024 17:03:55 +0000
Subject: [PATCH 3/3] Remove visible Fedora references Subject: [PATCH 3/5] Remove visible Fedora references
--- ---
data/liveinst/gnome/fedora-welcome.js | 6 +++--- data/liveinst/gnome/fedora-welcome.js | 6 +++---

View File

@ -0,0 +1,54 @@
From 97723cd95779e09d448bae6f0d3eb0313fc875d1 Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa@centosproject.org>
Date: Sat, 25 Jan 2025 17:14:07 -0500
Subject: [PATCH 4/5] Revert "storage: Remove support for the btrfs command on
RHEL10"
Restore Btrfs support so system installations can use Btrfs and
images can be built using Lorax with Btrfs as the filesystem.
This reverts commit d426413bb7bae72a7f4f6770a567998c75d62a23.
---
pyanaconda/modules/storage/kickstart.py | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/modules/storage/kickstart.py b/pyanaconda/modules/storage/kickstart.py
index f435dd7f4c..e154c79a79 100644
--- a/pyanaconda/modules/storage/kickstart.py
+++ b/pyanaconda/modules/storage/kickstart.py
@@ -100,6 +100,23 @@ class AutoPart(COMMANDS.AutoPart):
return retval
+class BTRFS(COMMANDS.BTRFS):
+ """The btrfs kickstart command."""
+
+ def parse(self, args):
+ """Parse the command."""
+ retval = super().parse(args)
+
+ # Check the file system type.
+ fmt = get_format("btrfs")
+
+ if not fmt.supported or not fmt.formattable:
+ msg = _("Btrfs file system is not supported.")
+ raise KickstartParseError(msg, lineno=self.lineno)
+
+ return retval
+
+
class ClearPart(COMMANDS.ClearPart):
"""The clearpart kickstart command."""
@@ -295,7 +312,7 @@ class StorageKickstartSpecification(KickstartSpecification):
commands = {
"autopart": AutoPart,
"bootloader": COMMANDS.Bootloader,
- "btrfs": COMMANDS.BTRFS,
+ "btrfs": BTRFS,
"clearpart": ClearPart,
"fcoe": Fcoe,
"ignoredisk": IgnoreDisk,
--
2.49.0

View File

@ -0,0 +1,31 @@
From 67da322d724f6cb075479264a615ccd728e33bc9 Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa@almalinux.org>
Date: Mon, 26 May 2025 20:43:19 -0400
Subject: [PATCH 5/5] data/profile.d/almalinux: Restore btrfs-progs to the
payload
As part of enabling Btrfs support, allow it to be part of the
payload of requested packages to be installed so that installs
with Btrfs are not broken out of the box.
---
data/profile.d/almalinux.conf | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/data/profile.d/almalinux.conf b/data/profile.d/almalinux.conf
index b40c556adc..f98d95c416 100644
--- a/data/profile.d/almalinux.conf
+++ b/data/profile.d/almalinux.conf
@@ -17,6 +17,10 @@ forbidden_modules =
efi_dir = almalinux
[Payload]
+# RHEL removes btrfs-progs, but we want it back
+ignored_packages =
+ ntfsprogs
+
enable_closest_mirror = True
default_source = CLOSEST_MIRROR
--
2.49.0

View File

@ -1,7 +1,7 @@
Summary: Graphical system installer Summary: Graphical system installer
Name: anaconda Name: anaconda
Version: 40.22.3.30 Version: 40.22.3.30
Release: 1%{?dist}.alma.1 Release: 1%{?dist}.alma.2
License: GPL-2.0-or-later License: GPL-2.0-or-later
URL: http://fedoraproject.org/wiki/Anaconda URL: http://fedoraproject.org/wiki/Anaconda
@ -16,6 +16,8 @@ Source0: https://github.com/rhinstaller/%{name}/releases/download/%{name}-%{vers
Patch1001: 0001-Add-Minimal-repo-support.patch Patch1001: 0001-Add-Minimal-repo-support.patch
Patch1002: 0002-Change-anaconda-background-color.patch Patch1002: 0002-Change-anaconda-background-color.patch
Patch1003: 0003-Remove-visible-Fedora-references.patch Patch1003: 0003-Remove-visible-Fedora-references.patch
Patch1004: 0004-Revert-storage-Remove-support-for-the-btrfs-command-.patch
Patch1005: 0005-data-profile.d-almalinux-Restore-btrfs-progs-to-the-.patch
# Versions of required components (done so we make sure the buildrequires # Versions of required components (done so we make sure the buildrequires
# match the requires versions of things). # match the requires versions of things).
@ -499,6 +501,10 @@ rm -rf \
%{_prefix}/libexec/anaconda/dd_* %{_prefix}/libexec/anaconda/dd_*
%changelog %changelog
* Wed May 28 2025 Neal Gompa <ngompa@almalinux.org> - 40.22.3.30-1.alma.2
- Refresh AlmaLinux patches
- Enable Btrfs support for AlmaLinux
* Fri May 23 2025 Eduard Abdullin <eabdullin@almalinux.org> - 40.22.3.30-1.alma.1 * Fri May 23 2025 Eduard Abdullin <eabdullin@almalinux.org> - 40.22.3.30-1.alma.1
- Apply AlmaLinux patches - Apply AlmaLinux patches
- Enable live subpackage by default on AlmaLinux - Enable live subpackage by default on AlmaLinux