summaryrefslogtreecommitdiff
path: root/meta/gpe-image.oe
diff options
context:
space:
mode:
Diffstat (limited to 'meta/gpe-image.oe')
-rw-r--r--meta/gpe-image.oe7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/gpe-image.oe b/meta/gpe-image.oe
index 6998873f66..04d830c775 100644
--- a/meta/gpe-image.oe
+++ b/meta/gpe-image.oe
@@ -8,4 +8,11 @@ export IPKG_INSTALL = 'task-bootstrap xserver-kdrive-fbdev \
gpe ttf-bitstream-vera pango-module-basic-x pango-module-basic-fc \
glibc-gconv glibc-gconv-iso8859-1 gdk-pixbuf-loader-png'
+zap_root_password () {
+ sed 's%^root:[^:]*:%root:*:%' < ${IMAGE_ROOTFS}/etc/passwd >${IMAGE_ROOTFS}/etc/passwd.new
+ mv ${IMAGE_ROOTFS}/etc/passwd.new ${IMAGE_ROOTFS}/etc/passwd
+}
+
+IMAGE_POSTPROCESS_COMMAND = "zap_root_password"
+
inherit image_ipk