diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-09-15 15:41:37 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-16 13:30:26 +0100 |
commit | e4fe5542a5242a62d7fc83bd24f65aeadb4d9390 (patch) | |
tree | a57b7cef66ff224596cdc92513bac5c664b3f687 /meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb | |
parent | 6f797c9398be2206dc6f721109a25038a2ce4a87 (diff) | |
download | poky-e4fe5542a5242a62d7fc83bd24f65aeadb4d9390.tar.gz |
Set an explicit path for the initrd scripts
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>
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb')
-rw-r--r-- | meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb index 704c2718a0..6f9b4c21f1 100644 --- a/meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb +++ b/meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb | |||
@@ -3,7 +3,7 @@ LICENSE = "MIT" | |||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
4 | SRC_URI = "file://init-boot.sh" | 4 | SRC_URI = "file://init-boot.sh" |
5 | 5 | ||
6 | PR = "r1" | 6 | PR = "r2" |
7 | 7 | ||
8 | do_install() { | 8 | do_install() { |
9 | install -m 0755 ${WORKDIR}/init-boot.sh ${D}/init | 9 | install -m 0755 ${WORKDIR}/init-boot.sh ${D}/init |