initrdscripts: fix init-live.sh

Fix bug: [YOCTO #686]
Because the variable "ROOT_IMAGE" in init-live.sh is not correct, it fails to
run when using liveCD. Modify value of "ROOT_IMAGE" to "isolinux/rootfs.img".
If we want to use liveCD, we also need to add some kernel options related to
CDROM support when compling kernel.

(From OE-Core rev: f9b6f41c9249cc90f7621d446eafae5e5508dd6e)

Signed-off-by: Jingdong Lu <jingdong.lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Jingdong Lu
2011-08-18 15:59:58 +08:00
committed by Richard Purdie
parent b174d51b42
commit 30ba9839a2
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/sh
ROOT_MOUNT="/rootfs/"
ROOT_IMAGE=rootfs.img
ROOT_IMAGE="isolinux/rootfs.img"
MOUNT="/bin/mount"
UMOUNT="/bin/umount"

View File

@@ -3,7 +3,7 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://init-live.sh"
PR = "r3"
PR = "r4"
do_install() {
install -m 0755 ${WORKDIR}/init-live.sh ${D}/init