Skip to content

Conversation

@hjluo
Copy link
Contributor

@hjluo hjluo commented Oct 24, 2025

Automate enabling kdump since first boot from Agama profile

@hjluo hjluo changed the title Automate enable Kdump for agama installation Automate enable kdump for agama installation Oct 24, 2025
@hjluo hjluo force-pushed the agama_kdump branch 10 times, most recently from 13e43cb to 26df2f9 Compare October 27, 2025 09:00
@hjluo hjluo marked this pull request as ready for review November 12, 2025 10:01
@hjluo hjluo changed the title Automate enable kdump for agama installation WiP: Automate enable kdump for agama installation Nov 12, 2025
@hjluo hjluo changed the title WiP: Automate enable kdump for agama installation WIP: Automate enable kdump for agama installation Nov 12, 2025
@hjluo hjluo force-pushed the agama_kdump branch 14 times, most recently from 6e520e8 to be5168b Compare November 26, 2025 07:07
@hjluo hjluo added the qe-yam label Nov 26, 2025
@hjluo hjluo force-pushed the agama_kdump branch 9 times, most recently from 2bedb65 to bc7c142 Compare December 1, 2025 09:34
@hjluo hjluo force-pushed the agama_kdump branch 6 times, most recently from 7c0ff5c to 1a7b159 Compare December 9, 2025 07:15
@hjluo hjluo changed the title WIP: Automate enable kdump for agama installation Automate enable kdump for agama installation Dec 9, 2025
my ($self) = @_;
select_console 'root-console';

systemctl("is-active kdump.service", ignore_failure => 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it really ignore failure? it should fail if the service is not as expected.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed.

Comment on lines 28 to 32
if (is_s390x()) {
power_action('reboot', textmode => 1);
} else {
power_action('reboot', keepconsole => 1, textmode => 1);
}
Copy link
Contributor

@jknphy jknphy Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like this could work and it is much shorter (not tested):
power_action('reboot', is_s390x ? () : keepconsole => 1, textmode => 1);

Copy link
Contributor Author

@hjluo hjluo Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed and works

@hjluo hjluo force-pushed the agama_kdump branch 2 times, most recently from 1d0669d to 00034ba Compare December 10, 2025 01:39
- Automate enable Kdump for agama installation
- Related ticket: rogress.opensuse.org/issues/189150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants