]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
installer: Fix reading /proc/cmdline when launched by GRUB
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Jul 2021 15:44:20 +0000 (15:44 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 14 Jul 2021 08:24:53 +0000 (08:24 +0000)
commit646d6b0670e2b56d007675ad2db1ac7670850382
treea411549fadeeda3f29b701998e13903add07e62d
parent618b9f3a7650b9f9d41dd0b5b34bf0758146e410
installer: Fix reading /proc/cmdline when launched by GRUB

The installer was reading the kernel command line and was looking for
certain values which configured the installer.

GRUB appended a trailing newline character which was not accounted for
and caused that the last parameter was not correctly compared to the
list of possible keys.

Fixes: #12656 - core 157: unattended installation don't work as expected on EFI
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/installer/main.c