]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
rootfs-postcommands: Remove dropbear inconsistent comment
authorDaniel Gomez <daniel@qtec.com>
Tue, 27 Sep 2022 10:30:06 +0000 (12:30 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Sep 2022 06:59:35 +0000 (07:59 +0100)
When allow-root-login, remove default dropbear comment 'Disallow
root'.

Signed-off-by: Daniel Gomez <daniel@qtec.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/rootfs-postcommands.bbclass

index 74601f0829a9b59b8d32bb868d9a7bd06a8e0083..690fa976aae54a94cb8d39939f633145502ef9af 100644 (file)
@@ -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
 }