diff options
| author | Radu Moisan <radu.moisan@intel.com> | 2012-07-19 14:59:52 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 17:18:10 +0100 |
| commit | 807ff46bc9d94106a11a58621994cc15e80f6d14 (patch) | |
| tree | 3ad71ce6e1c4f74939a270e7d751a2026b1b106f /meta/recipes-core/initrdscripts/files/init-live.sh | |
| parent | 99ed56ff38bb8ffac849c059905578e11df8f037 (diff) | |
| download | poky-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/files/init-live.sh')
| -rw-r--r-- | meta/recipes-core/initrdscripts/files/init-live.sh | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
