aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts/files/init-install.sh
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2011-09-15 15:41:37 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-16 13:29:35 +0100
commit4617ae0f433876037c2c9a0dfdb5e373e7a5c77b (patch)
tree1c6c4a4240e648f8bedc0fc0420da922c0ed3db1 /meta/recipes-core/initrdscripts/files/init-install.sh
parent97249b6d12e9a87bac97a48ad35434084bbe70e3 (diff)
downloadopenembedded-core-contrib-4617ae0f433876037c2c9a0dfdb5e373e7a5c77b.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 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/files/init-install.sh')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index fb6cea8d31..d31d994341 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -5,6 +5,8 @@
# install.sh [device_name] [rootfs_name] [video_mode] [vga_mode]
#
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
# We need 20 Mb for the boot partition
boot_size=20