|
|
7dd963 |
From 34cdfd6e055e79a659364c5c97ee300d1672379a Mon Sep 17 00:00:00 2001
|
|
|
7dd963 |
From: Jonathan Lebon <jonathan@jlebon.com>
|
|
|
7dd963 |
Date: Thu, 2 Jun 2022 11:39:55 -0400
|
|
|
7dd963 |
Subject: [PATCH] rust/scripts: Ignore `kernel-automotive-core.posttrans`
|
|
|
7dd963 |
|
|
|
7dd963 |
Yet another kernel package variant whose %posttrans we want to ignore.
|
|
|
7dd963 |
|
|
|
7dd963 |
As mentioned in there, I think we should change the strategy so that we
|
|
|
7dd963 |
detect kernel packages like we do in the core based on its `Provides` to
|
|
|
7dd963 |
know to ignore %posttrans.
|
|
|
7dd963 |
|
|
|
7dd963 |
Alternatively/additionally, we should work with kernel and systemd teams
|
|
|
7dd963 |
so that e.g. it short-circuits if it detects an "offline" system. That
|
|
|
7dd963 |
would also benefit containers, which AFAIK even today runs dracut on
|
|
|
7dd963 |
kernel installs.
|
|
|
7dd963 |
|
|
|
7dd963 |
Closes: #3720
|
|
|
7dd963 |
---
|
|
|
7dd963 |
rust/src/scripts.rs | 2 ++
|
|
|
7dd963 |
1 file changed, 2 insertions(+)
|
|
|
7dd963 |
|
|
|
7dd963 |
diff --git a/rust/src/scripts.rs b/rust/src/scripts.rs
|
|
|
7dd963 |
index 3b15c629..1f59e390 100644
|
|
|
7dd963 |
--- a/rust/src/scripts.rs
|
|
|
7dd963 |
+++ b/rust/src/scripts.rs
|
|
|
7dd963 |
@@ -18,9 +18,11 @@ use phf::phf_set;
|
|
|
7dd963 |
static IGNORED_PKG_SCRIPTS: phf::Set<&'static str> = phf_set! {
|
|
|
7dd963 |
"glibc.prein",
|
|
|
7dd963 |
// We take over depmod/dracut etc. It's `kernel` in C7 and kernel-core in F25+
|
|
|
7dd963 |
+ // XXX: we should probably change this to instead ignore based on the kernel virtual Provides
|
|
|
7dd963 |
"kernel.posttrans",
|
|
|
7dd963 |
"kernel-core.posttrans",
|
|
|
7dd963 |
"kernel-debug-core.posttrans",
|
|
|
7dd963 |
+ "kernel-automotive-core.posttrans",
|
|
|
7dd963 |
// Additionally ignore posttrans scripts for the Oracle Linux `kernel-uek` package
|
|
|
7dd963 |
"kernel-uek.posttrans",
|
|
|
7dd963 |
// Legacy workaround
|
|
|
7dd963 |
--
|
|
|
7dd963 |
2.36.1
|
|
|
7dd963 |
|