[pve-devel] [PATCH installer 2/2] low level: config: filter out all installer-related kernel arguments

Christoph Heiss c.heiss at proxmox.com
Fri Aug 9 13:51:43 CEST 2024


For one, include the auto-installer arguments, which weren't filtered
out before. Secondely, include the aliases as introduced in [0].

[0] de7f779 ("unconfigured: accept more telling boot cmdline option names")

Reported-by: Friedrich Weber <f.weber at proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
 Proxmox/Install/Config.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Proxmox/Install/Config.pm b/Proxmox/Install/Config.pm
index 6b064b1..976f7a1 100644
--- a/Proxmox/Install/Config.pm
+++ b/Proxmox/Install/Config.pm
@@ -44,7 +44,8 @@ my sub parse_kernel_cmdline {
     }
 
     $cmdline =~ s/\b(?:BOOT_IMAGE|root|ramdisk_size|splash|vga)=\S+\s?\b//gi;
-    $cmdline =~ s/\bro|rw|quiet|proxdebug|proxtui|nomodeset\b//gi;
+    $cmdline =~ s/\bro|rw|quiet|nomodeset\b//gi;
+    $cmdline =~ s/\bprox(debug|tui|auto)|proxmox-\S+\b//gi;
 
     $cfg->{target_cmdline}= $cmdline;
 
-- 
2.45.2





More information about the pve-devel mailing list