TT#5444 Fix another instance of /etc/init.d/hostname.sh for stretch

Ensure hostname is also valid at the beginning, adjust for stretch
where /etc/init.d/hostname.sh no longer exists.

Change-Id: Ia084442d7ea2b8b0e6e43f88af4474d3eda4a061
changes/44/9444/1
Michael Prokop 9 years ago
parent af44f363ef
commit efe1466692

@ -1424,7 +1424,7 @@ if [[ $(chroot $TARGET dpkg --list | awk '/^rc/ {print $2}') != "" ]] ; then
fi
# make sure `hostname` and `hostname --fqdn` return data from chroot
grml-chroot $TARGET /etc/init.d/hostname.sh
grml-chroot $TARGET hostname -F /etc/hostname
# make sure installations of packages works, will be overriden later again
cat > $TARGET/etc/hosts << EOF

Loading…
Cancel
Save