@@ -41,7 +41,3 @@ local_conf_header:
CONF_VERSION = "1"
cross: |
ISAR_CROSS_COMPILE = "1"
- root_password: |
- USERS += "root"
- # 'root'
- USER_root[password] = "oC3wEGl799tZU"
@@ -11,6 +11,9 @@
inherit image
+# for customization and root password
+require recipes-core/images/cip-core-image.bb
+
DESCRIPTION = "CIP Core image including security packages"
IMAGE_INSTALL += "security-customizations"
@@ -1,7 +1,7 @@
#
# CIP Core, generic profile
#
-# Copyright (c) Siemens AG, 2019
+# Copyright (c) Siemens AG, 2019 - 2021
#
# Authors:
# Jan Kiszka <jan.kiszka@siemens.com>
@@ -11,6 +11,7 @@
inherit image
inherit image_uuid
+
ISAR_RELEASE_CMD = "git -C ${LAYERDIR_cip-core} describe --tags --dirty --always --match 'v[0-9].[0-9]*'"
DESCRIPTION = "CIP Core image"
@@ -19,3 +20,8 @@ IMAGE_INSTALL += "customizations"
# for swupdate
SWU_DESCRIPTION ??= "swupdate"
include ${SWU_DESCRIPTION}.inc
+
+# add root user and set passwort
+USERS += "root"
+# 'root'
+USER_root[password] = "oC3wEGl799tZU"
@@ -4,12 +4,6 @@
# Security Package configurations
#
-echo "CIP Core Security Image (login: root/root)" > /etc/issue
-
-HOSTNAME=demo
-echo "$HOSTNAME" > /etc/hostname
-echo "127.0.0.1 $HOSTNAME" >> /etc/hosts
-
# CR1.7: Strength of password-based authentication
# Pam configuration to enforce password strength
PAM_PWD_FILE="/etc/pam.d/common-password"