update crashkernel setting in kernelcmdline #3

Merged
neil merged 1 commits from tcooper/rocky-kiwi-descriptions:update-kernelcmdline into r9 2024-08-22 13:56:42 +00:00
Contributor
  • crashkernel=auto deprecated in RHEL9
  • replace with output of echo $(sudo kdumpctl get-default-crashkernel)
- `crashkernel=auto` deprecated in RHEL9 - replace with output of `echo $(sudo kdumpctl get-default-crashkernel)`
tcooper added 1 commit 2024-08-21 20:26:06 +00:00
- `crashkernel=auto` deprecated in RHEL9
- replace with output of `echo $(sudo kdumpctl get-default-crashkernel)`
Author
Contributor

Extract of build sequence...

[tcooper@lima-kiwi9 rocky-kiwi-descriptions]$ ./cloud-build.sh -o "${HOME}" -c GenericCloud-Base
[ INFO    ]: 19:52:13 | Reading runtime config file: '/etc/kiwi.yml'
[ ERROR   ]: 19:52:13 | KiwiPrivilegesError: operation requires root permissions
[tcooper@lima-kiwi9 rocky-kiwi-descriptions]$ sudo ./cloud-build.sh -o "${HOME}" -c GenericCloud-Base
[ INFO    ]: 19:52:18 | Reading runtime config file: '/etc/kiwi.yml'
[ INFO    ]: 19:52:18 | Loading XML description
[ INFO    ]: 19:52:18 | Support for XML markup available
[ INFO    ]: 19:52:19 | --> loaded ./config.xml
[ INFO    ]: 19:52:19 | --> Selected build type: oem
[ INFO    ]: 19:52:19 | --> Selected profiles: Cloud-GenericCloud-Base,Core-Cloud,Core-Boot
[ INFO    ]: 19:52:19 | Preparing new root system
...
[ INFO    ]: 19:57:30 | --> GRUB_TIMEOUT:1
[ INFO    ]: 19:57:30 | Writing sysconfig bootloader file
[ INFO    ]: 19:57:30 | --> DEFAULT_APPEND:"console=ttyS0,115200n8 no_timer_check crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 root=UUID=b0c5f1bb-69fa-4dfb-b997-8facd08711db "
[ INFO    ]: 19:57:30 | --> FAILSAFE_APPEND:"console=ttyS0,115200n8 no_timer_check crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 root=UUID=b0c5f1bb-69fa-4dfb-b997-8facd08711db  ide=nodma apm=off noresume edd=off nomodeset 3 "
[ INFO    ]: 19:57:30 | --> LOADER_LOCATION:none
...
[ INFO    ]: 19:58:13 | Export rpm packages changelog metadata
[ INFO    ]: 19:58:13 | Export rpm verification metadata
[ INFO    ]: 19:58:18 | Creating qcow2 Disk Format
[ INFO    ]: 19:59:18 | Result files:
[ INFO    ]: 19:59:18 | --> disk_format_image: /home/tcooper.linux/Rocky.x86_64-9.qcow2
[ INFO    ]: 19:59:18 | --> disk_image: /home/tcooper.linux/Rocky.x86_64-9.raw
[ INFO    ]: 19:59:18 | --> image_changes: /home/tcooper.linux/Rocky.x86_64-9.changes
[ INFO    ]: 19:59:18 | --> image_packages: /home/tcooper.linux/Rocky.x86_64-9.packages
[ INFO    ]: 19:59:18 | --> image_verified: /home/tcooper.linux/Rocky.x86_64-9.verified

I've tested my suggested change with a Cloud image built with kiwi-ng and this simple change should change the current failing state...

current released GenericCloud image

$ cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt3)/vmlinuz-5.14.0-427.18.1.el9_4.x86_64 console=ttyS0,115200n8 no_timer_check crashkernel=auto net.ifnames=0 root=LABEL=rocky

$ sudo kdumpctl status
kdump: Kdump is not operational

$ systemctl status kdump.service
× kdump.service - Crash recovery kernel arming
     Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Wed 2024-08-21 19:39:02 UTC; 29min ago
   Main PID: 896 (code=exited, status=1/FAILURE)
        CPU: 18ms

...to the desired state...

updated GenericCloud image

$ cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt3)/vmlinuz-5.14.0-427.31.1.el9_4.x86_64 console=ttyS0,115200n8 no_timer_check crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 root=UUID=b0c5f1bb-69fa-4dfb-b997-8facd08711db

$ sudo kdumpctl status
kdump: Kdump is operational

$ systemctl status kdump.service
● kdump.service - Crash recovery kernel arming
     Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; preset: enabled)
     Active: active (exited) since Wed 2024-08-21 20:06:56 UTC; 1min 54s ago
    Process: 893 ExecStart=/usr/bin/kdumpctl start (code=exited, status=0/SUCCESS)
   Main PID: 893 (code=exited, status=0/SUCCESS)
        CPU: 9.599s
Extract of build sequence... ``` [tcooper@lima-kiwi9 rocky-kiwi-descriptions]$ ./cloud-build.sh -o "${HOME}" -c GenericCloud-Base [ INFO ]: 19:52:13 | Reading runtime config file: '/etc/kiwi.yml' [ ERROR ]: 19:52:13 | KiwiPrivilegesError: operation requires root permissions [tcooper@lima-kiwi9 rocky-kiwi-descriptions]$ sudo ./cloud-build.sh -o "${HOME}" -c GenericCloud-Base [ INFO ]: 19:52:18 | Reading runtime config file: '/etc/kiwi.yml' [ INFO ]: 19:52:18 | Loading XML description [ INFO ]: 19:52:18 | Support for XML markup available [ INFO ]: 19:52:19 | --> loaded ./config.xml [ INFO ]: 19:52:19 | --> Selected build type: oem [ INFO ]: 19:52:19 | --> Selected profiles: Cloud-GenericCloud-Base,Core-Cloud,Core-Boot [ INFO ]: 19:52:19 | Preparing new root system ... [ INFO ]: 19:57:30 | --> GRUB_TIMEOUT:1 [ INFO ]: 19:57:30 | Writing sysconfig bootloader file [ INFO ]: 19:57:30 | --> DEFAULT_APPEND:"console=ttyS0,115200n8 no_timer_check crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 root=UUID=b0c5f1bb-69fa-4dfb-b997-8facd08711db " [ INFO ]: 19:57:30 | --> FAILSAFE_APPEND:"console=ttyS0,115200n8 no_timer_check crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 root=UUID=b0c5f1bb-69fa-4dfb-b997-8facd08711db ide=nodma apm=off noresume edd=off nomodeset 3 " [ INFO ]: 19:57:30 | --> LOADER_LOCATION:none ... [ INFO ]: 19:58:13 | Export rpm packages changelog metadata [ INFO ]: 19:58:13 | Export rpm verification metadata [ INFO ]: 19:58:18 | Creating qcow2 Disk Format [ INFO ]: 19:59:18 | Result files: [ INFO ]: 19:59:18 | --> disk_format_image: /home/tcooper.linux/Rocky.x86_64-9.qcow2 [ INFO ]: 19:59:18 | --> disk_image: /home/tcooper.linux/Rocky.x86_64-9.raw [ INFO ]: 19:59:18 | --> image_changes: /home/tcooper.linux/Rocky.x86_64-9.changes [ INFO ]: 19:59:18 | --> image_packages: /home/tcooper.linux/Rocky.x86_64-9.packages [ INFO ]: 19:59:18 | --> image_verified: /home/tcooper.linux/Rocky.x86_64-9.verified ``` I've tested my suggested change with a Cloud image built with kiwi-ng and this simple change should change the current failing state... **current released GenericCloud image** ``` $ cat /proc/cmdline BOOT_IMAGE=(hd0,gpt3)/vmlinuz-5.14.0-427.18.1.el9_4.x86_64 console=ttyS0,115200n8 no_timer_check crashkernel=auto net.ifnames=0 root=LABEL=rocky $ sudo kdumpctl status kdump: Kdump is not operational $ systemctl status kdump.service × kdump.service - Crash recovery kernel arming Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Wed 2024-08-21 19:39:02 UTC; 29min ago Main PID: 896 (code=exited, status=1/FAILURE) CPU: 18ms ``` ...to the desired state... **updated GenericCloud image** ``` $ cat /proc/cmdline BOOT_IMAGE=(hd0,gpt3)/vmlinuz-5.14.0-427.31.1.el9_4.x86_64 console=ttyS0,115200n8 no_timer_check crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 root=UUID=b0c5f1bb-69fa-4dfb-b997-8facd08711db $ sudo kdumpctl status kdump: Kdump is operational $ systemctl status kdump.service ● kdump.service - Crash recovery kernel arming Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; preset: enabled) Active: active (exited) since Wed 2024-08-21 20:06:56 UTC; 1min 54s ago Process: 893 ExecStart=/usr/bin/kdumpctl start (code=exited, status=0/SUCCESS) Main PID: 893 (code=exited, status=0/SUCCESS) CPU: 9.599s ```
neil approved these changes 2024-08-22 13:55:40 +00:00
neil merged commit c116ea3368 into r9 2024-08-22 13:56:42 +00:00
neil deleted branch update-kernelcmdline 2024-08-22 13:56:42 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sig_core/rocky-kiwi-descriptions#3
No description provided.