Refresh Btrfs support patch

This commit is contained in:
Andrew Lukoshko 2025-05-30 18:36:23 +00:00
parent c05fd1f35f
commit 54f755521b
3 changed files with 36 additions and 32 deletions

View File

@ -54,5 +54,5 @@ actions:
name: "0004-Revert-storage-Remove-support-for-the-btrfs-command-.patch"
number: "Latest"
- type: "patch"
name: "0005-data-profile.d-almalinux-Restore-btrfs-progs-to-the-.patch"
name: "0005-data-profile.d-almalinux-Add-Btrfs-support.patch"
number: "Latest"

View File

@ -0,0 +1,35 @@
From 5d2bd35eade079c5406c601b371b827729bfd3fe Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa@almalinux.org>
Date: Fri, 30 May 2025 14:27:12 -0400
Subject: [PATCH 5/5] data/profile.d/almalinux: Add Btrfs support
As part of enabling Btrfs support, set reasonable defaults for
Btrfs compression similar to Fedora Linux and CentOS Hyperscale
and 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 | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/data/profile.d/almalinux.conf b/data/profile.d/almalinux.conf
index b40c556adc..d45d682391 100644
--- a/data/profile.d/almalinux.conf
+++ b/data/profile.d/almalinux.conf
@@ -16,7 +16,14 @@ forbidden_modules =
[Bootloader]
efi_dir = almalinux
+[Storage]
+btrfs_compression = zstd:1
+
[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,31 +0,0 @@
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