From cb80493fa8e2f4fc0f368b0f77ffb35c58ba5b40 Mon Sep 17 00:00:00 2001 From: Daniel Gomez Date: Tue, 27 Sep 2022 12:30:06 +0200 Subject: [PATCH] rootfs-postcommands: Remove dropbear inconsistent comment When allow-root-login, remove default dropbear comment 'Disallow root'. Signed-off-by: Daniel Gomez Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/classes-recipe/rootfs-postcommands.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes-recipe/rootfs-postcommands.bbclass b/meta/classes-recipe/rootfs-postcommands.bbclass index 74601f0829a..690fa976aae 100644 --- a/meta/classes-recipe/rootfs-postcommands.bbclass +++ b/meta/classes-recipe/rootfs-postcommands.bbclass @@ -204,6 +204,7 @@ ssh_allow_root_login () { if [ -e ${IMAGE_ROOTFS}${sbindir}/dropbear ] ; then if grep -q DROPBEAR_EXTRA_ARGS ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear 2>/dev/null ; then sed -i '/^DROPBEAR_EXTRA_ARGS=/ s/-w//' ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear + sed -i '/^# Disallow root/d' ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear fi fi } -- 2.47.3