diff options
author | Holger Freyther <zecke@selfish.org> | 2007-03-06 19:23:13 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2007-03-06 19:23:13 +0000 |
commit | 4830e248ffa0ba2a9b69b9a5fdd4933eaee7cad8 (patch) | |
tree | 964dbc88e489cd7f431223aa96e9981ddd9e687d /classes | |
parent | 5b98bc859513b2ba2f1ccb58f187ec193233d428 (diff) | |
parent | ccab4b3ba6f2ccc5e598c9d2ec6405f4494ca200 (diff) |
merge of '8a114c24deca9328747f14101e87db8845400833'
and 'f02f7da26cf1279907a41d7957e054f42575adbd'
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image.bbclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass index 83aa80a97e..5055b5b987 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -165,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 |