From 76f2c1f75546591a972faad71f70e9b8157d7c1d Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Mon, 19 Nov 2012 17:30:46 +0100 Subject: [PATCH] del-image-minimal-dev: Add development image. Includes development version of packages as well as empty password root login, and package manager. Signed-off-by: Alex Gonzalez --- .../images/del-image-minimal-dev.bb | 30 +++++++++++++++++++ .../recipes-core/images/del-image-minimal.bb | 5 ---- 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 meta-digi-del/recipes-core/images/del-image-minimal-dev.bb diff --git a/meta-digi-del/recipes-core/images/del-image-minimal-dev.bb b/meta-digi-del/recipes-core/images/del-image-minimal-dev.bb new file mode 100644 index 000000000..405a838a6 --- /dev/null +++ b/meta-digi-del/recipes-core/images/del-image-minimal-dev.bb @@ -0,0 +1,30 @@ +# +# 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 ; " diff --git a/meta-digi-del/recipes-core/images/del-image-minimal.bb b/meta-digi-del/recipes-core/images/del-image-minimal.bb index 9acf7449d..6cf3c551a 100644 --- a/meta-digi-del/recipes-core/images/del-image-minimal.bb +++ b/meta-digi-del/recipes-core/images/del-image-minimal.bb @@ -13,11 +13,6 @@ inherit core-image IMAGE_FEATURES = "core-ssh-dropbear" -# 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 () {