forked from rpms/leapp-repository
79ca77ccf4
- Do not terminate the upgrade dracut module execution if /sysroot/root/tmp_leapp_py3/.leapp_upgrade_failed exists - Several minor improvements in messages printed in console output - Several minor improvements in report and error messages - Fix the parsing of the lscpu output - Fix evaluation of PES data - Target by default always "GA" channel repositories unless a different channel is specified for the leapp execution - Fix creation of the post upgrade report about changes in states of systemd services - Update the device driver deprecation data, fixing invalid fields for some AMD CPUs - Update the default kernel cmdline - Wait for the storage initialization when /usr is on separate file system - covering SAN - Resolves: RHEL-27847, RHEL-35240
31 lines
1.4 KiB
Diff
31 lines
1.4 KiB
Diff
From 0869ab168780f4fa10f37f34aaf51342a88c0e5c Mon Sep 17 00:00:00 2001
|
|
From: Petr Stodulka <pstodulk@redhat.com>
|
|
Date: Tue, 30 Apr 2024 16:42:26 +0200
|
|
Subject: [PATCH 24/34] kernelcmdlineconfig: add newline in /etc/kernel/cmdline
|
|
|
|
Previous solution created the file without adding the newline
|
|
in the end of the file. The original solution worked, but to stay
|
|
on the safe side, adding the expected new line.
|
|
|
|
Jira: RHEL-26840, OAMG-10424
|
|
---
|
|
.../actors/kernelcmdlineconfig/libraries/kernelcmdlineconfig.py | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/repos/system_upgrade/common/actors/kernelcmdlineconfig/libraries/kernelcmdlineconfig.py b/repos/system_upgrade/common/actors/kernelcmdlineconfig/libraries/kernelcmdlineconfig.py
|
|
index ad59eb22..238a8aa6 100644
|
|
--- a/repos/system_upgrade/common/actors/kernelcmdlineconfig/libraries/kernelcmdlineconfig.py
|
|
+++ b/repos/system_upgrade/common/actors/kernelcmdlineconfig/libraries/kernelcmdlineconfig.py
|
|
@@ -57,6 +57,8 @@ def set_default_kernel_args(kernel_args):
|
|
# Put kernel_args into /etc/kernel/cmdline
|
|
with open(KERNEL_CMDLINE_FILE, 'w') as f:
|
|
f.write(kernel_args)
|
|
+ # new line is expected in the EOF (POSIX).
|
|
+ f.write('\n')
|
|
else:
|
|
# Use grub2-editenv to put the kernel args into /boot/grub2/grubenv
|
|
stdlib.run(['grub2-editenv', '-', 'set', 'kernelopts={}'.format(kernel_args)])
|
|
--
|
|
2.42.0
|
|
|