mirror of
https://git.yoctoproject.org/poky
synced 2026-02-26 19:39:40 +01:00
If we don't set PATH, then the shell will specify one for us. Busybox adds the sbin dirs, but bash does not. I hit an issue where bash (among other things) ended up in my initrd and the boot scripts failed due to a bad default PATH. While that is a separate issue, we should not be at the mercy of the shell's default PATH. Update the initrdscripts to all specify: PATH=/sbin:/bin:/usr/sbin:/usr/bin (From OE-Core rev: 4617ae0f433876037c2c9a0dfdb5e373e7a5c77b) Signed-off-by: Darren Hart <dvhart@linux.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 = "r6"
|
|
|
|
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"
|