]> code.ossystems Code Review - openembedded-core.git/commitdiff
Add console kernel options
authorRadu Moisan <radu.moisan@intel.com>
Thu, 19 Jul 2012 11:59:52 +0000 (14:59 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jul 2012 16:02:55 +0000 (17:02 +0100)
Live image installer did not preserve BSP specified console= kernel parameter.
This patch updates the init scripts that are responsible for grub.cfg creation
so that options like console= are passed allong from installer to installed img

[YOCTO #2426]

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/grub/grub-1.99/40_custom
meta/recipes-core/initrdscripts/files/init-install.sh
meta/recipes-core/initrdscripts/files/init-live.sh

index 0d80854778eb9ad2a3a3a8d5cf0cc2bd79545380..ba488308b64e6217fc1677906c9016d86cf9cafc 100755 (executable)
@@ -5,5 +5,5 @@ exec tail -n +3 $0
 # the 'exec tail' line above.
 menuentry "Linux" {
     set root=(hd0,1)
-    linux /boot/vmlinuz root=__ROOTFS__ rw __VIDEO_MODE__ __VGA_MODE__ quiet
+    linux /boot/vmlinuz root=__ROOTFS__ rw __CONSOLE__ __VIDEO_MODE__ __VGA_MODE__ quiet
 }
index 0ac4949355c3cf2bc1bb501eba58ad74b8142217..c1f8cba5d3efc3f5b7a80c8d2dbe344c3eb5335e 100644 (file)
@@ -156,6 +156,7 @@ if [ -f /ssd/etc/grub.d/40_custom ] ; then
     sed -i "s@__ROOTFS__@$rootfs $rootwait@g" /ssd/etc/grub.d/40_custom
     sed -i "s/__VIDEO_MODE__/$3/g" /ssd/etc/grub.d/40_custom
     sed -i "s/__VGA_MODE__/$4/g" /ssd/etc/grub.d/40_custom
+    sed -i "s/__CONSOLE__/$5/g" /ssd/etc/grub.d/40_custom
     mount $bootfs /bootmnt
     cp /ssd/etc/grub.d/40_custom /bootmnt/40_custom
     umount /bootmnt
index 737dae4cbcd54d522781e0d06e09a7b40744d89f..d5e241a620fb88ef87be3f6c62d39009917149c9 100644 (file)
@@ -38,6 +38,12 @@ read_args() {
                 video_mode=$arg ;;
             vga=*)
                 vga_mode=$arg ;;
+            console=*)
+                if [ -z "${console_params}" ]; then
+                    console_params=$arg
+                else
+                    console_params="$console_params $arg"
+                fi
         esac
     done
 }
@@ -112,7 +118,7 @@ case $label in
        ;;
     install)
        if [ -f /media/$i/$ISOLINUX/$ROOT_IMAGE ] ; then
-           ./install.sh $i/$ISOLINUX $ROOT_IMAGE $video_mode $vga_mode
+           ./install.sh $i/$ISOLINUX $ROOT_IMAGE $video_mode $vga_mode $console_params
        else
            fatal "Could not find install script"
        fi