I'm trying to write a .bbappend file that will be added to initramfs-live-boot_1.0.bb , which has a statement inside do_install() that writes the contents of init-live.sh , a shell script that controls the boot process, before init , initialization script that runs at boot time. The purpose of my .bbappend file is to link to a modified version of the script run to copy instead of the original without changing the openembedded-core and / or poky base environments. Thus, the .bbappend file and my version of the script are placed in my project directory with the rest of my own recipes to be created.
My initramfs-live-boot_1.0.bbappend looks like this:
SUMMARY = "Replacement recipe" FILESEXTRAPATH_prepend := "${THISDIR}/files:" SRC_URI += "file://init.sh" do_install_append() { install -m 0755 ${WORKDIR}/init.sh ${D}/init }
I have a files folder in the same directory as a .bbappend file that contains an init.sh script that should read.
The problem is when I try to create an image, it spits out this error:
WARNING: Failed to fetch URL file://init.sh, attempting MIRRORS if available
and then tries to search the poky directory for the missing files, and not in my project directory.
Am I spelling the .bbappend file .bbappend ? How do I start editing initramfs scripts with a .bbappend file?
Shiri source share