meta-digi/meta-digi-del/recipes-core/images/del-image-minimal-dev.bb

31 lines
945 B
BlitzBasic

#
# Copyright (C) 2012 Digi International.
#
DESCRIPTION = "DEL busybox based image (non graphical) suitable for development work."
IMAGE_INSTALL = "task-del-core ${ROOTFS_PKGMANAGE} ${CORE_IMAGE_EXTRA_INSTALL}"
IMAGE_LINGUAS = " "
LICENSE = "MIT"
inherit core-image
IMAGE_FEATURES = "core-ssh-dropbear"
IMAGE_FEATURES += "dev-pkgs"
# Adding debug-tweaks will enable empty password login.
# Note that adding debug-tweaks to EXTRA_IMAGE_FEATURES will not
# allow for empty password logins.
IMAGE_FEATURES =+ "debug-tweaks"
# core-image disables the root password if debug-tweak is not enabled.
# This override will use the shadow file instead.
zap_root_password () {
sed 's%^root:[^:]*:%root:x:%' < ${IMAGE_ROOTFS}/etc/passwd >${IMAGE_ROOTFS}/etc/passwd.new
mv ${IMAGE_ROOTFS}/etc/passwd.new ${IMAGE_ROOTFS}/etc/passwd
}
# remove not needed ipkg informations
ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "