summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2008-03-22 12:07:20 +0000
committerPhilipp Zabel <philipp.zabel@gmail.com>2008-03-22 12:07:20 +0000
commit379e6441f9af24ce817cad7e433ce9a599c4188c (patch)
tree7fb3cf2456536f9799eeee07c9b23c43f41d8045 /packages
parent8e73e9517a7d9e4c5273cf8c3bf4420ab6adb3e2 (diff)
initramfs-uniboot-1.0: only source existing files in load_modules
* this avoids "/init: source: 64: Can't open /initrd.d/0*" for initramfs images built without the bootldr-buster module.
Diffstat (limited to 'packages')
-rw-r--r--packages/initrdscripts/files/init.sh8
-rw-r--r--packages/initrdscripts/initramfs-uniboot_1.0.bb2
2 files changed, 6 insertions, 4 deletions
diff --git a/packages/initrdscripts/files/init.sh b/packages/initrdscripts/files/init.sh
index 60d2e5da8b..cfac69b6d9 100644
--- a/packages/initrdscripts/files/init.sh
+++ b/packages/initrdscripts/files/init.sh
@@ -41,9 +41,11 @@ read_args() {
load_modules() {
for module in $MODULE_DIR/$1; do
- # Cannot redir to $CONSOLE here easily - may not be set yet
- echo "initramfs: Loading $module module"
- source $module
+ if [ -e "$module" ]; then
+ # Cannot redir to $CONSOLE here easily - may not be set yet
+ echo "initramfs: Loading $module module"
+ source $module
+ fi
done
}
diff --git a/packages/initrdscripts/initramfs-uniboot_1.0.bb b/packages/initrdscripts/initramfs-uniboot_1.0.bb
index 403db0b562..5a042ab748 100644
--- a/packages/initrdscripts/initramfs-uniboot_1.0.bb
+++ b/packages/initrdscripts/initramfs-uniboot_1.0.bb
@@ -1,5 +1,5 @@
SRC_URI = "file://init.sh"
-PR = "r8"
+PR = "r9"
DESCRIPTON = "A modular initramfs init script system."
RRECOMMENDS = "kernel-module-mtdblock"