diff options
| author | Saul Wold <sgw@linux.intel.com> | 2014-02-26 09:19:41 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-28 14:01:11 +0000 |
| commit | d9d6f01aa706796e45de3597676e65d1dd583342 (patch) | |
| tree | 1f64ccd8176f2049797e494b128821d2cbff2e8e /meta | |
| parent | ad30740b129abd3ac18dd227d36294840856c3ac (diff) | |
| download | poky-d9d6f01aa706796e45de3597676e65d1dd583342.tar.gz | |
initrdscripts: Add rootimage option
This allows for setting the ROOT_IMAGE name on the kernel command line
[YOCTO #5387]
(From OE-Core rev: 00e3acde7910a5fb1d2e6b71187f2d9283319e71)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/initrdscripts/files/init-live.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh index 7e27f91f9e..9e53a25a51 100644 --- a/meta/recipes-core/initrdscripts/files/init-live.sh +++ b/meta/recipes-core/initrdscripts/files/init-live.sh | |||
| @@ -49,6 +49,8 @@ read_args() { | |||
| 49 | case $arg in | 49 | case $arg in |
| 50 | root=*) | 50 | root=*) |
| 51 | ROOT_DEVICE=$optarg ;; | 51 | ROOT_DEVICE=$optarg ;; |
| 52 | rootimage=*) | ||
| 53 | ROOT_IMAGE=$optarg ;; | ||
| 52 | rootfstype=*) | 54 | rootfstype=*) |
| 53 | modprobe $optarg 2> /dev/null ;; | 55 | modprobe $optarg 2> /dev/null ;; |
| 54 | LABEL=*) | 56 | LABEL=*) |
| @@ -133,7 +135,7 @@ do | |||
| 133 | mount | grep media | 135 | mount | grep media |
| 134 | echo "Available block devices" | 136 | echo "Available block devices" |
| 135 | ls /dev/sd* | 137 | ls /dev/sd* |
| 136 | fatal "Cannot find rootfs.img file in /media/* , dropping to a shell " | 138 | fatal "Cannot find $ROOT_IMAGE file in /media/* , dropping to a shell " |
| 137 | fi | 139 | fi |
| 138 | C=$(( C + 1 )) | 140 | C=$(( C + 1 )) |
| 139 | fi | 141 | fi |
