* this avoids "/init: source: 64: Can't open /initrd.d/0*" for initramfs
images built without the bootldr-buster module.
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
}
SRC_URI = "file://init.sh"
-PR = "r8"
+PR = "r9"
DESCRIPTON = "A modular initramfs init script system."
RRECOMMENDS = "kernel-module-mtdblock"