Set the avahi hostname when making an image

This commit is contained in:
Bob Mottram 2015-11-29 16:20:20 +00:00
parent 54b3daf9d4
commit 0dfa5a608f
1 changed files with 2 additions and 0 deletions

View File

@ -343,6 +343,8 @@ chroot "$rootdir" apt-get install -y avahi-daemon avahi-utils avahi-discover ava
chroot "$rootdir" apt-get install -y iptables dnsutils net-tools network-manager iputils-ping
chroot "$rootdir" apt-get install -y libnss-mdns libnss-myhostname libnss-gw-name nano man ntp
sed -i "s|#host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
chroot "$rootdir" /bin/bash -x <<EOF
git clone https://github.com/bashrc/freedombone /root/freedombone
cd /root/freedombone