diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-11-10 17:21:10 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2008-11-10 17:21:10 +0100 |
commit | 31aee0a9f9e35a847a1fc30c35048e8970745943 (patch) | |
tree | 9b1127547fec69b8ac6fe77b8ac380ebe603aebf /meta | |
parent | 1782861e45089b0b287cb554f5029a7c04ce6763 (diff) | |
download | poky-31aee0a9f9e35a847a1fc30c35048e8970745943.tar.gz |
image.bbclass: Add routine for disabling x startup when needed
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image.bbclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 35b7e12498..3678459380 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -211,7 +211,14 @@ rootfs_update_timestamp () { | |||
211 | date "+%m%d%H%M%Y" >${IMAGE_ROOTFS}/etc/timestamp | 211 | date "+%m%d%H%M%Y" >${IMAGE_ROOTFS}/etc/timestamp |
212 | } | 212 | } |
213 | 213 | ||
214 | # Prevent X from being started | ||
215 | rootfs_no_x_startup () { | ||
216 | if [ -f ${IMAGE_ROOTFS}/etc/init.d/xserver-nodm ]; then | ||
217 | chmod a-x ${IMAGE_ROOTFS}/etc/init.d/xserver-nodm | ||
218 | fi | ||
219 | } | ||
220 | |||
214 | # export the zap_root_password, create_etc_timestamp and remote_init_link | 221 | # export the zap_root_password, create_etc_timestamp and remote_init_link |
215 | EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp | 222 | EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp rootfs_no_x_startup |
216 | 223 | ||
217 | addtask rootfs before do_build after do_install | 224 | addtask rootfs before do_build after do_install |