Browse Source

arm-debootstrap: Add also hostname in /etc/hosts file

This patch fixes this issue.
fixes labriqueinternet/build.labriqueinter.net#15
Sebastien Badia 9 years ago
parent
commit
0f280ddc0f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      olinux/create_arm_debootstrap.sh

+ 1 - 0
olinux/create_arm_debootstrap.sh

@@ -184,6 +184,7 @@ chroot_deb $TARGET_DIR 'chmod g+s /var/mail/'
 
 # Set hostname
 echo $DEB_HOSTNAME > $TARGET_DIR/etc/hostname
+sed -i "1i127.0.1.1\t${DEB_HOSTNAME}" $TARGET_DIR/etc/hosts
 
 # Add firstrun and secondrun init script
 install -m 755 -o root -g root ${REP}/script/secondrun $TARGET_DIR/etc/init.d/