Comment 2 for bug 674090

Revision history for this message
Ken Werner (kwerner) wrote :

Thanks for looking into this. Will the contents of /etc/hosts be created during the first boot? Since I don't want to delete my system I only created an image using the latest packages and mounted it loop-back. It looks like the resultant image contains an empty /etc/hosts file.

Here is what I did:
<snip>
$ wget -q http://snapshots.linaro.org/11.05-daily/linaro-hwpacks/vexpress/20101201/1/images/hwpack/hwpack_linaro-vexpress_20101201-1_armel_supported.tar.gz
$ wget -q http://snapshots.linaro.org/11.05-daily/linaro-headless/20101201/1/images/tar/linaro-natty-headless-tar-20101201-1.tar.gz

$ bzr branch lp:linaro-image-tools
Branched 177 revision(s).
$ cd linaro-image-tools

$ sudo ./linaro-media-create --image_file vexpress.img --rootfs ext3 --dev vexpress --binary ../linaro-natty-headless-tar-20101201-1.tar.gz --hwpack ../hwpack_linaro-vexpress_20101201-1_armel_supported.tar.gz

$ sudo kpartx -a vexpress.img
$ sudo mount /dev/mapper/loop0p2 /mnt/tmp2 -o loop,ro

$ cat /mnt/tmp2/etc/hosts
$ file /mnt/tmp2/etc/hosts
/mnt/tmp2/etc/hosts: empty
<snip>

Please let me know if there is a better way to verify this.