mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-24 12:01:59 +01:00
build_kernel_image: modify console, loglevel and quiet kernel options
Three related changes to kernel command line: 1. quiet kernel command line option is redundant with loglevel option since quiet sets the loglevel to 4 but it is immediately overriden by the loglevel option. Remove quiet option. 2. with loglevel set to 0 in the kernel command line, pstore console doesn't work most of the time. This is because all printk's with level lower than that don't make it to the console drivers. Set loglevel to 7. 3. console=tty2 doesn't do what we want since the early boot and shutdown messages with appropriate message log level are still visible on screen. Set console to empty. BUG=chrome-os-partner:12780 TEST=1. boot system and ensure that no kernel log messages appear on screen. Then do a warm reboot and check that /dev/pstore/console-ramoops file contains kernel log messages from the previous boot. 2. run bootperf test and ensure there are no boot time regressions. Change-Id: Id1348c30d6aa3d818bae3259e748bf7100bf9c51 Reviewed-on: https://gerrit.chromium.org/gerrit/31180 Reviewed-by: Mandeep Singh Baines <msb@chromium.org> Reviewed-by: Olof Johansson <olofj@chromium.org> Commit-Ready: Sameer Nanda <snanda@chromium.org> Tested-by: Sameer Nanda <snanda@chromium.org>
This commit is contained in:
parent
ac6712fed3
commit
542cb53e9d
@ -133,9 +133,8 @@ info "Emitted cross-platform boot params to ${FLAGS_working_dir}/boot.config"
|
|||||||
# Add common boot options first.
|
# Add common boot options first.
|
||||||
cat <<EOF | cat - "${FLAGS_working_dir}/boot.config" \
|
cat <<EOF | cat - "${FLAGS_working_dir}/boot.config" \
|
||||||
> "${FLAGS_working_dir}/config.txt"
|
> "${FLAGS_working_dir}/config.txt"
|
||||||
quiet
|
loglevel=7
|
||||||
loglevel=0
|
console=
|
||||||
console=tty2
|
|
||||||
init=/sbin/init
|
init=/sbin/init
|
||||||
cros_secure
|
cros_secure
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user