summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorRadu Moisan <radu.moisan@intel.com>2012-07-19 14:59:52 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-19 17:18:10 +0100
commit807ff46bc9d94106a11a58621994cc15e80f6d14 (patch)
tree3ad71ce6e1c4f74939a270e7d751a2026b1b106f /meta/recipes-core/initrdscripts
parent99ed56ff38bb8ffac849c059905578e11df8f037 (diff)
downloadpoky-807ff46bc9d94106a11a58621994cc15e80f6d14.tar.gz
Add console kernel options
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] (From OE-Core rev: e18c59eb5a61f265b9cad6de68359fa1430b0e58) Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initrdscripts')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install.sh1
-rw-r--r--meta/recipes-core/initrdscripts/files/init-live.sh8
2 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index 0ac4949355..c1f8cba5d3 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -156,6 +156,7 @@ if [ -f /ssd/etc/grub.d/40_custom ] ; then
156 sed -i "s@__ROOTFS__@$rootfs $rootwait@g" /ssd/etc/grub.d/40_custom 156 sed -i "s@__ROOTFS__@$rootfs $rootwait@g" /ssd/etc/grub.d/40_custom
157 sed -i "s/__VIDEO_MODE__/$3/g" /ssd/etc/grub.d/40_custom 157 sed -i "s/__VIDEO_MODE__/$3/g" /ssd/etc/grub.d/40_custom
158 sed -i "s/__VGA_MODE__/$4/g" /ssd/etc/grub.d/40_custom 158 sed -i "s/__VGA_MODE__/$4/g" /ssd/etc/grub.d/40_custom
159 sed -i "s/__CONSOLE__/$5/g" /ssd/etc/grub.d/40_custom
159 mount $bootfs /bootmnt 160 mount $bootfs /bootmnt
160 cp /ssd/etc/grub.d/40_custom /bootmnt/40_custom 161 cp /ssd/etc/grub.d/40_custom /bootmnt/40_custom
161 umount /bootmnt 162 umount /bootmnt
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index 737dae4cbc..d5e241a620 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -38,6 +38,12 @@ read_args() {
38 video_mode=$arg ;; 38 video_mode=$arg ;;
39 vga=*) 39 vga=*)
40 vga_mode=$arg ;; 40 vga_mode=$arg ;;
41 console=*)
42 if [ -z "${console_params}" ]; then
43 console_params=$arg
44 else
45 console_params="$console_params $arg"
46 fi
41 esac 47 esac
42 done 48 done
43} 49}
@@ -112,7 +118,7 @@ case $label in
112 ;; 118 ;;
113 install) 119 install)
114 if [ -f /media/$i/$ISOLINUX/$ROOT_IMAGE ] ; then 120 if [ -f /media/$i/$ISOLINUX/$ROOT_IMAGE ] ; then
115 ./install.sh $i/$ISOLINUX $ROOT_IMAGE $video_mode $vga_mode 121 ./install.sh $i/$ISOLINUX $ROOT_IMAGE $video_mode $vga_mode $console_params
116 else 122 else
117 fatal "Could not find install script" 123 fatal "Could not find install script"
118 fi 124 fi