aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2017-11-22 17:21:27 +0800
committerHongxu Jia <hongxu.jia@windriver.com>2017-11-23 04:14:22 -0500
commit220aa3f948eff98d2bf4bf377a5e66b8b963cd2d (patch)
treec6dc2e87129b00f9dec3634d0824c69da2df83b9
parentcd35f1e094bfa14a2dc34ee1abc501e0e1350e64 (diff)
downloadopenembedded-core-contrib-hongxu/meta-installer.tar.gz
openembedded-core-contrib-hongxu/meta-installer.tar.bz2
openembedded-core-contrib-hongxu/meta-installer.zip
meta-installer: add recipe core-image-anaconda-initramfshongxu/meta-installer
The initramfs image is used for PXE install (net boot installation) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-rw-r--r--meta-installer/recipes-installer/images/core-image-anaconda-initramfs.bb33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-installer/recipes-installer/images/core-image-anaconda-initramfs.bb b/meta-installer/recipes-installer/images/core-image-anaconda-initramfs.bb
new file mode 100644
index 0000000000..8f2dc3b820
--- /dev/null
+++ b/meta-installer/recipes-installer/images/core-image-anaconda-initramfs.bb
@@ -0,0 +1,33 @@
+DESCRIPTION = "The initramfs contains anaconda installer, which supports \
+PXE install (net boot installation)"
+
+CUSTOMIZE_LOGOS ??= "yocto-compat-logos"
+
+IMAGE_INSTALL = "\
+ initramfs-live-boot \
+ initramfs-live-install \
+ initramfs-live-install-efi \
+ busybox udev ldd \
+ initscripts \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit', '', d)} \
+ sysvinit-inittab \
+ base-passwd \
+ kernel-modules \
+ ${CUSTOMIZE_LOGOS} \
+ python3-anaconda \
+ anaconda-init \
+ ${@['', 'packagegroup-installer-x11-anaconda'][bool(d.getVar('XSERVER', True))]} \
+ packagegroup-core-boot \
+ packagegroup-core-ssh-openssh \
+"
+
+IMAGE_LINGUAS = "en-us en-gb"
+
+LICENSE = "MIT"
+
+IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
+inherit core-image anaconda_image
+
+IMAGE_ROOTFS_SIZE = "8192"
+INITRAMFS_MAXSIZE ?= "1048576"
+