From f7bcd4f5475a84dcd02620a5ff6080ee3264475a Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Tue, 20 Oct 2015 14:47:16 -0700 Subject: [PATCH] grub: add oem_id variable to kernel parameters --- build_library/grub.cfg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build_library/grub.cfg b/build_library/grub.cfg index 9de7844218..0daaaf88af 100644 --- a/build_library/grub.cfg +++ b/build_library/grub.cfg @@ -15,6 +15,7 @@ set timeout=1 set linux_root="root=LABEL=ROOT" set linux_console="" set first_boot="" +set oem_id="" # Anything else the OEM adds should use this variable. set linux_append="" @@ -44,6 +45,10 @@ if [ -n "$first_boot" ]; then set first_boot="coreos.first_boot=1" fi +if [ -n "$oem_id" ]; then + set oem_id="coreos.oem.id=$oem_id" +fi + # If no specific console has been set by the OEM then select based on # platform, most systems use vga text as primary and ttyS0 as secondary. if [ -z "$linux_console" ]; then @@ -71,7 +76,7 @@ else fi # Assemble the options applicable to all the kernels below -set linux_cmdline="rootflags=rw mount.usrflags=ro $linux_root $linux_console $first_boot $linux_append" +set linux_cmdline="rootflags=rw mount.usrflags=ro $linux_root $linux_console $first_boot $oem_id $linux_append" menuentry "CoreOS default" --id=coreos { gptprio.next -d usr -u usr_uuid