dropbear: Allow root login fix
This enables root login when either "allow-root-login" or "debug-tweaks"
were set in EXTRA_IMAGE_FEATURES.
Signed-off-by: Jan Claussen <[email protected]>
________________________________
This email including its attachments is intended for the person or entity only
to which it is addressed. It may contain confidential and/or privileged
material. Any review, forwarding, dissemination, other use of, or taking of any
action in reliance upon this information by persons or entities other than the
intended recipient is prohibited. If you received this email in error, please
contact the sender and delete the material from any computer system.
________________________________
Eppendorf SE, Hamburg, Barkhausenweg 1, 22339 Hamburg, Amtsgericht Hamburg HRB
171526
Vors. des Aufsichtsrats: Philipp von Loeper
Vorstand: Eva van Pelt (Co-Vorsitzende), Dr. Peter Fruhstorfer
(Co-Vorsitzender), Axel Jaeger und Dr. Wilhelm Plüster
Eppendorf Instrumente GmbH, Hamburg, Amtsgericht Hamburg, HRB 69077
Geschäftsführer: Dr. Bernd Petersen und Dr. Alexander Papra
Eppendorf Liquid Handling GmbH, Hamburg, Amtsgericht Hamburg, HRB 92250
Geschäftsführer: Dietmar Stadler
________________________________
According to the general high quality approach of Eppendorf, we apply to our
mail traffic the latest protection technologies and methods, including
extensive scanning and DMARC, to help our communication partners in protecting
their IT environment.
Privacy information according to Articles 13 and 14 GDPR can be found here:
www.eppendorf.com/gdpr
<http://www.eppendorf.com/gdpr>
________________________________
commit c7640648578e5fc3b7e589e3f1b420a47f126aee
Author: Jan Claussen <[email protected]>
Date: Tue Jun 7 13:34:41 2022 +0200
dropbear: Allow root login fix
This enables root login when either "allow-root-login" or "debug-tweaks"
were set in EXTRA_IMAGE_FEATURES.
Signed-off-by: Jan Claussen <[email protected]>
diff --git a/meta/recipes-core/dropbear/dropbear.inc b/meta/recipes-core/dropbear/dropbear.inc
index 78f9f9adbd..e545c425ab 100644
--- a/meta/recipes-core/dropbear/dropbear.inc
+++ b/meta/recipes-core/dropbear/dropbear.inc
@@ -105,6 +105,13 @@ do_install() {
-e 's,@BINDIR@,${bindir},g' \
-e 's,@SBINDIR@,${sbindir},g' \
${D}${systemd_system_unitdir}/dropbear.socket ${D}${systemd_system_unitdir}/*.service
+
+ # Enable root login for dropbear when debug-tweaks or allow-root-login are set
+ if [ "${@bb.utils.filter('EXTRA_IMAGE_FEATURES', 'debug-tweaks', d)}" \
+ || "${@bb.utils.filter('EXTRA_IMAGE_FEATURES', 'allow-root-login', d)}" ]; then
+ sed -i 's/-w//g' ${D}/etc/default/dropbear
+ fi
+
}
inherit update-alternatives
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#166659):
https://lists.openembedded.org/g/openembedded-core/message/166659
Mute This Topic: https://lists.openembedded.org/mt/91598485/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-