diff options
author | Daniel Gomez <daniel@qtec.com> | 2022-09-27 12:30:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-28 08:01:10 +0100 |
commit | d1ba4098d1fe6c91c9fa7a904f1565cf95080eea (patch) | |
tree | 8a1fc69e2fbbc844b27183568aac00985e02b5ff | |
parent | c653bfc68b06bfd4fa07ba18322599a130b1c59a (diff) | |
download | poky-d1ba4098d1fe6c91c9fa7a904f1565cf95080eea.tar.gz |
rootfs-postcommands: Remove dropbear inconsistent comment
When allow-root-login, remove default dropbear comment 'Disallow
root'.
(From OE-Core rev: cb80493fa8e2f4fc0f368b0f77ffb35c58ba5b40)
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>
-rw-r--r-- | meta/classes-recipe/rootfs-postcommands.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-recipe/rootfs-postcommands.bbclass b/meta/classes-recipe/rootfs-postcommands.bbclass index 74601f0829..690fa976aa 100644 --- a/meta/classes-recipe/rootfs-postcommands.bbclass +++ b/meta/classes-recipe/rootfs-postcommands.bbclass | |||
@@ -204,6 +204,7 @@ ssh_allow_root_login () { | |||
204 | if [ -e ${IMAGE_ROOTFS}${sbindir}/dropbear ] ; then | 204 | if [ -e ${IMAGE_ROOTFS}${sbindir}/dropbear ] ; then |
205 | if grep -q DROPBEAR_EXTRA_ARGS ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear 2>/dev/null ; then | 205 | if grep -q DROPBEAR_EXTRA_ARGS ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear 2>/dev/null ; then |
206 | sed -i '/^DROPBEAR_EXTRA_ARGS=/ s/-w//' ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear | 206 | sed -i '/^DROPBEAR_EXTRA_ARGS=/ s/-w//' ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear |
207 | sed -i '/^# Disallow root/d' ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear | ||
207 | fi | 208 | fi |
208 | fi | 209 | fi |
209 | } | 210 | } |