mirror of
https://git.yoctoproject.org/poky
synced 2026-02-24 02:19:39 +01:00
The install boot option was giving the following error when one tried to install the live image on a permanent storage of a BSP. cat: write error Invalid argument Installation image failed sh: can't access tty: job control turned off Further digging into the issue, found out that the install script was trying to do this: cat /proc/mounts > /etc/mtab And in the base-files recipe the /etc/mtab is made soft link to /proc/mounts. So the cat command was failing to write on /etc/mtab. As the contents of the /proc/mounts is already reflected in the /etc/mtab file due to the symlink-ing, there is no need for this step to recreate /etc/mtab in the install script. So just removing this unnecessary step, which solves the install issue of the live images. Fixes this bug: [YOCTO #4229] (From OE-Core rev: f8663eac872882e94d956b1b604304e92b865766) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
23 lines
638 B
BlitzBasic
23 lines
638 B
BlitzBasic
DESCRIPTION = "A live image init script for grub"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
SRC_URI = "file://init-install.sh"
|
|
|
|
PR = "r9"
|
|
|
|
RDEPENDS_${PN} = "grub parted e2fsprogs-mke2fs"
|
|
|
|
do_install() {
|
|
install -m 0755 ${WORKDIR}/init-install.sh ${D}/install.sh
|
|
}
|
|
|
|
# While this package maybe an allarch due to it being a
|
|
# simple script, reality is that it is Host specific based
|
|
# on the COMPATIBLE_HOST below, which needs to take precedence
|
|
#inherit allarch
|
|
INHIBIT_DEFAULT_DEPS = "1"
|
|
|
|
FILES_${PN} = " /install.sh "
|
|
|
|
COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
|