The kernel-install command takes the command line from the file /etc/kernel/cmdline. This file is re-generated when you run grub2-mkconfig based on information in the file /etc/default/grub if /etc/default/grub is newer than the file /etc/kernel/cmdline.
If the file /etc/kernel/cmdline doesn’t exist and the file /usr/lib/kernel/cmdline also doesn’t exist, the command line is taken from /proc/cmdline.
Thanks. The file /etc/kernel/cmdline exists but is empty and the file /usr/lib/kernel/cmdline does not exists. Can I safely copy the /proc/cmdline contents into /etc/kernel/cmdline to solve the problem for the next kernel update?
You first check the contents of /etc/default/grub and make sure that file is newer than the /etc/kernel/cmdline file. Especially check the value of the GRUB_CMDLINE_LINUX= line. By the way, you can drop the resume= entry unless you are using hibernation, aka suspend-to-disk.
Then the file /lib/kernel/cmdline should have the correct contents. You can also run sudo grubby --info=ALL to check that all grub2 configuration is OK.