Skip to content

Commit 4ef69f0

Browse files
committed
kconfig: syzbot: avoid duplicated output
Config files from syzbot have CONFIG_CMDLINE="earlyprintk=serial (...) console=ttyS0 (...)" Virtme already sets them to different values. Because virtme uses console=hvc0 by default on some arch, the console=ttyS0 from syzbot will cause the output to be duplicated: [ 0.794784][ T0] Console: colour *CGA 80x25 [ 0.795159][ T0] printk: legacy console [ttyS0] enabled [ 0.869386][ T0] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar [ 0.869386][ T0] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar [ 0.870424][ T0] ... MAX_LOCKDEP_SUBCLASSES: 8 [ 0.870424][ T0] ... MAX_LOCKDEP_SUBCLASSES: 8 This is confusing, and takes some resources. Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
1 parent ebdcd58 commit 4ef69f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

entrypoint.sh

+3
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,9 @@ gen_kconfig() { local mode kconfig=() vck rc=0
621621
if [ -s "${1:-}" ]; then
622622
local i
623623
for i in "${@}"; do
624+
# These options are already set by virtme, to avoid
625+
# duplicated output in the terminal, e.g. syzbot options
626+
sed -i 's/console=\S\+ //g;s/earlyprintk=\S\+ //g' "${i}"
624627
vck+=(--custom "${i}")
625628
done
626629

0 commit comments

Comments
 (0)