forked from cockpit/cockpit
This adds 3 patches to support the new SUSE_PRETTY_NAME keys in the os-release. We can't depend on the NAME/PRETTY_NAME and need to use VARIANT/VARIANT_ID to determine to os we're on and SUSE_PRETTY_NAME to display the correct pretty name. 0001-cockpit-overview-support-SUSE_SUPPORT_PRODUCT-keys.patch should be dropped when systemd starts reporting the os name correctly.
38 lines
1.6 KiB
Diff
38 lines
1.6 KiB
Diff
From 14b86b6d60b009c4294f06589a561e688ba49223 Mon Sep 17 00:00:00 2001
|
|
From: Luna D Dragon <luna.dragon@suse.com>
|
|
Date: Tue, 8 Jul 2025 14:58:25 +0530
|
|
Subject: [PATCH 2/3] cockpit-kdump support SLE micro 6.2
|
|
|
|
SLE micro 6.2 no longer has MicroOS in the NAME. This updates it to
|
|
check if the VARIANT_ID is transactional to use transactional-update
|
|
over manually enabling kdump.
|
|
---
|
|
pkg/kdump/kdump-view.jsx | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/pkg/kdump/kdump-view.jsx b/pkg/kdump/kdump-view.jsx
|
|
index eee4d16b1..7d8439f2b 100644
|
|
--- a/pkg/kdump/kdump-view.jsx
|
|
+++ b/pkg/kdump/kdump-view.jsx
|
|
@@ -421,7 +421,7 @@ export class KdumpPage extends React.Component {
|
|
kdumpctl reset-crashkernel`;
|
|
}
|
|
let shell;
|
|
- if (this.state.os_release.NAME?.includes('MicroOS')) {
|
|
+ if (this.state.os_release.NAME?.includes('MicroOS') || this.state.os_release.VARIANT_ID?.includes("transactional")) {
|
|
enableCrashKernel = `
|
|
# A reboot will be required if crashkernel was not set before
|
|
transactional-update setup-kdump`;
|
|
@@ -443,7 +443,7 @@ ${enableCrashKernel}
|
|
|
|
Dialogs.show(
|
|
<ModificationsExportDialog
|
|
- ansible={ this.state.os_release.NAME?.includes('MicroOS') ? null : exportAnsibleTask(this.props.kdumpStatus.config, this.state.os_release)}
|
|
+ ansible={ (this.state.os_release.NAME?.includes('MicroOS') || this.state.os_release.VARIANT_ID?.includes("transactional")) ? null : exportAnsibleTask(this.props.kdumpStatus.config, this.state.os_release)}
|
|
shell={shell}
|
|
onClose={Dialogs.close}
|
|
/>);
|
|
--
|
|
2.50.0
|
|
|