[yocto] Yocto with Initial RamFS
Søren Holm
sgh at sgh.dk
Thu May 29 08:38:23 PDT 2014
Torsdag den 29. maj 2014 08:07:11 skrev Brian Smucker:
> Hi,
>
> Was wondering why this has not been answered. Maybe it is too dumb of a
> question? If so, let me know or point me to some documentation.
>
I'm declaring an initramfs-image like this. As you can see the recipe is
derived from core-image-minimal-initramfs. The package initramfs-vm provides
the script /init executed on boot.
The "assembling" of the actual bootable image with initramfs and rootfs (in my
case a squashfs) is done in another script.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# initramfs for vm-image. Derived from core-image-minimal-initramfs
DESCRIPTION = "Small image capable of booting a a squashfs+aufs filesystem"
IMAGE_INSTALL = "initramfs-vm-boot busybox udev base-passwd"
# Do not pollute the initrd image with rootfs features
IMAGE_FEATURES = ""
IMAGE_LINGUAS = ""
#DISTRO_FEATURES = ""
inherit core-image
IMAGE_FSTYPES = "cpio"
IMAGE_PREPROCESS_COMMAND = "cb16_remote_bloat;"
cb16_remote_bloat() {
rm -r ${IMAGE_ROOTFS}/boot
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
--
Søren Holm
More information about the yocto
mailing list