low level: config: filter out all installer-related kernel arguments

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

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

Reported-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
Christoph Heiss 2024-11-11 12:05:16 +01:00 committed by Thomas Lamprecht
parent 46bdcbf5a1
commit 470af1d60e

View File

@ -45,7 +45,8 @@ my sub parse_kernel_cmdline {
my @filtered = grep {
$_ !~ m/^(BOOT_IMAGE|root|ramdisk_size|splash|vga)=\S+$/ &&
$_ !~ m/^(ro|rw|quiet|proxdebug|proxtui)$/
$_ !~ m/^(ro|rw|quiet)$/ &&
$_ !~ m/^(prox(debug|tui|auto)|proxmox-\S+)$/
} split(/\s+/, $cmdline);
$cfg->{target_cmdline} = join(' ', @filtered);