2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-21 01:42:15 +00:00
Files
xcat-core/xCAT-server/share/xcat/install/scripts/post.openeuler
T
Vinícius Ferrão 4f8d099b19 fix(install): start kdump on openEuler nodes only with dump memory
On riscv64, an installed openEuler node reserves no dump memory, so
kdump.service fails and the node boots degraded.

The openEuler kickstart %post adds the kdump.service drop-in that
stateless images get. It runs before post.rhels8, which ends the %post
script with exit 0. A node whose command line carries crashkernel= or
fadump= still starts kdump.
2026-11-02 19:55:56 -03:00

8 lines
411 B
Plaintext

# kdump.service fails without dump memory, which the kernel has only when its
# command line carries crashkernel= or, on POWER, fadump=.
if [ -e /usr/lib/systemd/system/kdump.service ]; then
mkdir -p /etc/systemd/system/kdump.service.d
printf '[Unit]\nConditionKernelCommandLine=|crashkernel\nConditionKernelCommandLine=|fadump\n' \
>/etc/systemd/system/kdump.service.d/xcat-dump-memory.conf
fi