diff options
-rw-r--r-- | meta/classes/image.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index dc9bd80165..01f8b3fc19 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -335,7 +335,8 @@ MULTILIB_TEMP_ROOTFS = "${WORKDIR}/multilib" | |||
335 | zap_empty_root_password () { | 335 | zap_empty_root_password () { |
336 | if [ -e ${IMAGE_ROOTFS}/etc/shadow ]; then | 336 | if [ -e ${IMAGE_ROOTFS}/etc/shadow ]; then |
337 | sed -i 's%^root::%root:*:%' ${IMAGE_ROOTFS}/etc/shadow | 337 | sed -i 's%^root::%root:*:%' ${IMAGE_ROOTFS}/etc/shadow |
338 | elif [ -e ${IMAGE_ROOTFS}/etc/passwd ]; then | 338 | fi |
339 | if [ -e ${IMAGE_ROOTFS}/etc/passwd ]; then | ||
339 | sed -i 's%^root::%root:*:%' ${IMAGE_ROOTFS}/etc/passwd | 340 | sed -i 's%^root::%root:*:%' ${IMAGE_ROOTFS}/etc/passwd |
340 | fi | 341 | fi |
341 | } | 342 | } |