diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2007-03-07 02:48:30 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-03-07 02:48:30 +0000 |
commit | 82f522e25a15d4a3bb992e25cf2d72524e00aee3 (patch) | |
tree | 6df1d9b7cf94cb5192ea66fb8eceaecf43058280 /classes/image.bbclass | |
parent | 95ab40dfc8bbb89f1579b5b5e2167459c97fcf8f (diff) | |
parent | a4f387cd021a1609192a230ac88147bdd9cd7011 (diff) |
merge of '8641efcbdf45be9e288119393a9b475e46f9c515'
and 'b0f962e1665b2f7f0c836386fa0e1e6e3bf6c376'
Diffstat (limited to 'classes/image.bbclass')
-rw-r--r-- | classes/image.bbclass | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass index 69d7fb2e9b..5055b5b987 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -4,7 +4,7 @@ PACKAGES = "" # We need to recursively follow RDEPENDS and RRECOMMENDS for images BUILD_ALL_DEPS = "1" -do_rootfs[recrdeptask] = "do_package_write do_deploy" +do_rootfs[recrdeptask] = "do_package_write do_deploy do_populate_staging" # Images are generally built explicitly, do not need to be part of world. EXCLUDE_FROM_WORLD = "1" @@ -91,6 +91,10 @@ fakeroot do_rootfs () { else bbimage -n "${IMAGE_NAME}" -t "$type" -e "${FILE}" fi + + cd ${DEPLOY_DIR_IMAGE}/ + rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.* + ln -s ${IMAGE_NAME}.rootfs.$type ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type done ${IMAGE_POSTPROCESS_COMMAND} @@ -161,7 +165,14 @@ make_zimage_symlink_relative () { fi } +# Make login manager(s) enable automatic login. +# Useful for devices where we do not want to log in at all (e.g. phones) +set_image_autologin () { + sed -i 's%^AUTOLOGIN=\"false"%AUTOLOGIN="true"%g' ${IMAGE_ROOTFS}/etc/sysconfig/gpelogin +} + + # export the zap_root_password, create_etc_timestamp and remote_init_link -EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative +EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin addtask rootfs before do_build after do_install |