From 5f230ae1b32d4f8fa7e962b8d0faed9c94afd8a2 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Sat, 10 Jul 2004 14:55:15 +0000 Subject: Merge bk://openembedded@openembedded.bkbits.net/packages into workhouse.nexus.co.uk:/home/pb/oe/oe-packages 2004/07/10 15:08:51+02:00 (none)!ich Merge bk://openembedded@openembedded.bkbits.net/packages into debian.(none):/home/ich/programming/oe/oe-packages-exported 2004/07/10 15:07:39+02:00 (none)!ich Move zapping of passwords from gpe-image.oe to image_ipk.oeclass so that all images can use this function. Currently gpe uses it and in the opie-image.oe it is still commented out BKrev: 40f00353lvCZEyW1qeOLzClEQDO2JQ --- classes/image_ipk.oeclass | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'classes') diff --git a/classes/image_ipk.oeclass b/classes/image_ipk.oeclass index 7821aa6c6d..f0fb5ec483 100644 --- a/classes/image_ipk.oeclass +++ b/classes/image_ipk.oeclass @@ -69,4 +69,16 @@ EOF oeimage -t ${IMAGE_FSTYPE} -e ${FILE} fi } + +# set '*' as the rootpassword so the images +# can decide if they want it or not + +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 +} + +# export the zap_root_password +EXPORT_FUNCTIONS zap_root_password + addtask images before do_build after do_install -- cgit v1.2.3