core-image-ros-groovy-running-roscore: augmenting hosts

This commit is contained in:
Lukas Bulwahn 2013-04-11 08:12:40 +02:00
parent 45606f351f
commit feb2755614
1 changed files with 9 additions and 1 deletions

View File

@ -10,8 +10,16 @@ inherit core-image
IMAGE_ROOTFS_SIZE = "8192" IMAGE_ROOTFS_SIZE = "8192"
# add own name to hosts
# this is a simplistic setup for the qemu virtual machine with x86 architecture,
# and not a general solution.
augment_hosts_setting_file () {
echo '127.0.0.1\tqemux86.localdomain\t\tqemux86' >> ${IMAGE_ROOTFS}/etc/hosts
}
# remove not needed ipkg informations # remove not needed ipkg informations
ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; " # create a custom hosts file
ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; augment_hosts_setting_file ; "
IMAGE_INSTALL += "packagegroup-core-ssh-openssh \ IMAGE_INSTALL += "packagegroup-core-ssh-openssh \
roslaunch \ roslaunch \