loader: do not build complex commandline for mb2 kernel
With boot loader environment being passed to kernel, we do not need to build complex kernel command line for MB2 kernel, instead all automatic properties should be passed in environment and only manually set properties should be set on kernel command line.
so this will set kernel command line:
ok boot -B console=ttya
will keep variables in environment. However, there is one notable exception - if the user did not specify console like above, but there is os_console set in environment, we will pass the "-B console=$os_console" for kernel command line. This exception is because of the nature of os_console variable itself - it was created to distinguish loader console from kernel console.
For multiboot 1 kernels, there are no changes - all properties are set on kernel command line.
Updated by Electric Monk almost 5 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
commit ade2ca5bfc7cc2c053e1ffcd03f14b027d63631d Author: Toomas Soome <firstname.lastname@example.org> Date: 2017-05-25T13:58:18.000Z 8099 loader: do not build complex commandline for mb2 kernel Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Yuri Pankov <firstname.lastname@example.org> Reviewed by: Hans Rosenfeld <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>