Currently, no users at the image have any password. This is bad,
as it doesn't allow ssh into the machine. So, let's set a
password for the root user, as "root".
Change-Id: I0cbe36211f1fe7cb7cb2d3260f3acc6a0e19ed11
(From meta-tizen rev:
f96cf2b3611d4f5b2aa2f16dc9b6dc0bf7cb3047)
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-tizen-fonts-pango"
export SYSROOT = "${IMAGE_ROOTFS}"
+
+# Set root password to "root"
+ROOTFS_POSTPROCESS_COMMAND += "set_root_passwd;"
+set_root_passwd() {
+ sed 's%^root:[^:]*:%root:wYNffsf6sozwE:%' \
+ < ${IMAGE_ROOTFS}/etc/shadow \
+ > ${IMAGE_ROOTFS}/etc/shadow.new;
+ mv ${IMAGE_ROOTFS}/etc/shadow.new ${IMAGE_ROOTFS}/etc/shadow;
+}