diff options
-rw-r--r-- | meta/classes-recipe/image_types_wic.bbclass | 1 | ||||
-rw-r--r-- | meta/conf/distro/include/default-distrovars.inc | 3 | ||||
-rw-r--r-- | scripts/lib/wic/canned-wks/mkefidisk.wks | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes-recipe/image_types_wic.bbclass b/meta/classes-recipe/image_types_wic.bbclass index 86f40633eb..1fa016c16e 100644 --- a/meta/classes-recipe/image_types_wic.bbclass +++ b/meta/classes-recipe/image_types_wic.bbclass | |||
@@ -26,6 +26,7 @@ WICVARS ?= "\ | |||
26 | INITRD \ | 26 | INITRD \ |
27 | INITRD_LIVE \ | 27 | INITRD_LIVE \ |
28 | ISODIR \ | 28 | ISODIR \ |
29 | KERNEL_CONSOLE \ | ||
29 | KERNEL_IMAGETYPE \ | 30 | KERNEL_IMAGETYPE \ |
30 | MACHINE \ | 31 | MACHINE \ |
31 | PSEUDO_IGNORE_PATHS \ | 32 | PSEUDO_IGNORE_PATHS \ |
diff --git a/meta/conf/distro/include/default-distrovars.inc b/meta/conf/distro/include/default-distrovars.inc index 7554081e8b..85835c4c61 100644 --- a/meta/conf/distro/include/default-distrovars.inc +++ b/meta/conf/distro/include/default-distrovars.inc | |||
@@ -1,7 +1,8 @@ | |||
1 | QA_LOGFILE = "${TMPDIR}/qa.log" | 1 | QA_LOGFILE = "${TMPDIR}/qa.log" |
2 | 2 | ||
3 | OEINCLUDELOGS ?= "yes" | 3 | OEINCLUDELOGS ?= "yes" |
4 | KERNEL_CONSOLE ?= "ttyS0" | 4 | # if SERIAL_CONSOLES is set, take the first device entry. Otherwise use ttyS0 as the default |
5 | KERNEL_CONSOLE ?= "${@','.join(d.getVar('SERIAL_CONSOLES').split(' ')[0].split(';')[::-1]) or 'ttyS0,115200'}" | ||
5 | KEEPUIMAGE ??= "yes" | 6 | KEEPUIMAGE ??= "yes" |
6 | 7 | ||
7 | DEFAULT_IMAGE_LINGUAS = "en-us en-gb" | 8 | DEFAULT_IMAGE_LINGUAS = "en-us en-gb" |
diff --git a/scripts/lib/wic/canned-wks/mkefidisk.wks b/scripts/lib/wic/canned-wks/mkefidisk.wks index 9f534fe184..5fa6682a9e 100644 --- a/scripts/lib/wic/canned-wks/mkefidisk.wks +++ b/scripts/lib/wic/canned-wks/mkefidisk.wks | |||
@@ -8,4 +8,4 @@ part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 | |||
8 | 8 | ||
9 | part swap --ondisk sda --size 44 --label swap1 --fstype=swap | 9 | part swap --ondisk sda --size 44 --label swap1 --fstype=swap |
10 | 10 | ||
11 | bootloader --ptable gpt --timeout=5 --append="rootfstype=ext4 console=ttyS0,115200 console=tty0" | 11 | bootloader --ptable gpt --timeout=5 --append="rootfstype=ext4 console=${KERNEL_CONSOLE} console=tty0" |