[isar-cip-core][PATCH 2/6] customizations: make postinst script report all potential errors


Henning Schild <henning.schild@...>
 

Let us try and make sure that all bits we have are executed as expected.

Signed-off-by: Henning Schild <henning.schild@...>
---
recipes-core/customizations/files/postinst | 2 ++
1 file changed, 2 insertions(+)

diff --git a/recipes-core/customizations/files/postinst b/recipes-core/customizations/files/postinst
index 2b6db1f1fef3..543a2e14d180 100644
--- a/recipes-core/customizations/files/postinst
+++ b/recipes-core/customizations/files/postinst
@@ -10,6 +10,8 @@
# SPDX-License-Identifier: MIT
#

+set -e
+
echo "CIP Core Demo & Test Image (login: root/root)" > /etc/issue

if ! grep -e "^PermitRootLogin.*yes" -q /etc/ssh/sshd_config; then
--
2.37.4