-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osbuild: update patchset for OSBuild v136 release
OSbuild v136 was released and landed in F41. That release included the commit for one of the patches we are carrying [1] so we can drop 0004-util-chroot-Add-support-for-custom-directory-bind-mo.patch Two of the other patches we are carrying were merged upstream [2] [3], so we'll update the patches here to their final versions. [1] osbuild/osbuild#1917 [2] osbuild/osbuild#1927 [3] osbuild/osbuild#1944
- Loading branch information
Showing
6 changed files
with
47 additions
and
131 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
4 changes: 2 additions & 2 deletions
4
src/0001-osbuild-remoteloop-add-more-loop-device-options.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 9edf8572ad4797033e7342c308ac617aa284f3ae Mon Sep 17 00:00:00 2001 | ||
From f4b899873b1f108edbf12d81ee5dbed037238a7e Mon Sep 17 00:00:00 2001 | ||
From: Dusty Mabe <[email protected]> | ||
Date: Fri, 22 Nov 2024 19:02:57 -0500 | ||
Subject: [PATCH 1/5] osbuild/remoteloop: add more loop device options | ||
Subject: [PATCH] osbuild/remoteloop: add more loop device options | ||
|
||
This adds lock, partscan, read_only, sector_size to _create_device() | ||
similar to make_loop() from devices/org.osbuild.loopback. | ||
|
44 changes: 44 additions & 0 deletions
44
src/0001-util-osrelease.py-Replaced-string-stripping-with-shl.patch
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,44 @@ | ||
From 07d4f6955dd5dd5535b3e2f8e4722eb20f95e613 Mon Sep 17 00:00:00 2001 | ||
From: Renata Ravanelli <[email protected]> | ||
Date: Tue, 12 Nov 2024 15:12:52 -0300 | ||
Subject: [PATCH] util/osrelease.py: Replaced string stripping with | ||
`shlex.split()` | ||
|
||
- Replaced string stripping with `shlex.split()` to properly | ||
handle values in the os-release file; | ||
- This ensures cleaner and more accurate key-value assignments, | ||
follwing a broader set of shell-like parsing rules; | ||
- Add os-release file for Fedora CoreOS 40 for testing. | ||
|
||
Signed-off-by: Renata Ravanelli <[email protected]> | ||
--- | ||
osbuild/util/osrelease.py | 6 +++++- | ||
1 file changed, 5 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/osbuild/util/osrelease.py b/osbuild/util/osrelease.py | ||
index b8d56e73..cc97faf5 100644 | ||
--- a/osbuild/util/osrelease.py | ||
+++ b/osbuild/util/osrelease.py | ||
@@ -5,6 +5,7 @@ related documentation can be found in `os-release(5)`. | ||
""" | ||
|
||
import os | ||
+import shlex | ||
|
||
# The default paths where os-release is located, as per os-release(5) | ||
DEFAULT_PATHS = [ | ||
@@ -33,7 +34,10 @@ def parse_files(*paths): | ||
if line[0] == "#": | ||
continue | ||
key, value = line.split("=", 1) | ||
- osrelease[key] = value.strip('"') | ||
+ split_value = shlex.split(value) | ||
+ if not split_value or len(split_value) > 1: | ||
+ raise ValueError(f"Key '{key}' has an empty value or more than one token: {value}") | ||
+ osrelease[key] = split_value[0] | ||
|
||
return osrelease | ||
|
||
-- | ||
2.47.0 | ||
|
34 changes: 0 additions & 34 deletions
34
src/0002-osbuild-loop-make-the-loop-device-if-missing.patch
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
src/0003-util-osrelease.py-improve-whitespace-and-quote-strip.patch
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
src/0004-util-chroot-Add-support-for-custom-directory-bind-mo.patch
This file was deleted.
Oops, something went wrong.