Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit df57add

Browse files
committed
nix: patch systemd to not include .osrel section
1 parent 6ce05a7 commit df57add

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
system:
2121
let
2222
overlay = final: prev: {
23-
mkosi = prev.mkosi.overrideAttrs (old: {
24-
patches = old.patches or [ ] ++ [ ./image/0001-drop-.osrel-UKI-section.patch ];
23+
systemd = prev.systemd.overrideAttrs (old: {
24+
patches = old.patches or [ ] ++ [ ./image/0001-ukify-dont-bundle-osrel-section.patch ];
2525
});
2626

2727
rpm = prev.rpm.overrideAttrs (old: {

image/0001-drop-.osrel-UKI-section.patch

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From f4d9b358e9ff6761a3e72db6f109fe4576ea58c2 Mon Sep 17 00:00:00 2001
2+
From: Moritz Sanft <58110325+msanft@users.noreply.github.com>
3+
Date: Tue, 2 Sep 2025 10:21:58 +0200
4+
Subject: [PATCH] ukify: dont bundle osrel section
5+
6+
Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
7+
---
8+
src/ukify/ukify.py | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py
12+
index fce36b6686..1f261299b3 100755
13+
--- a/src/ukify/ukify.py
14+
+++ b/src/ukify/ukify.py
15+
@@ -1393,7 +1393,7 @@ def make_uki(opts: UkifyConfig) -> None:
16+
17+
sections = [
18+
# name, content, measure?
19+
- ('.osrel', opts.os_release, True),
20+
+ # ('.osrel', opts.os_release, True),
21+
('.cmdline', opts.cmdline, True),
22+
('.dtb', opts.devicetree, True),
23+
*(('.dtbauto', dtb, True) for dtb in opts.devicetree_auto),
24+
--
25+
2.51.0
26+

0 commit comments

Comments
 (0)