TT#5444 hostname.sh init script no longer exists with stretch, adjust

/etc/init.d/hostname.sh no longer exists in Debian stretch
and newer.

/etc/hostname always exists in our usecase since we create
it straight before setting the hostname, so do exactly
what the initscript usually did for us.

Change-Id: Ibf59c1494dab7978ae40a61cf9eb15c2e54836f6
changes/36/9436/2
Michael Prokop 9 years ago committed by Alexander Lutay
parent 7518fc822f
commit af44f363ef

@ -2243,7 +2243,7 @@ EOF
echo "Setting hostname to $TARGET_HOSTNAME"
echo "$TARGET_HOSTNAME" > ${TARGET}/etc/hostname
grml-chroot $TARGET /etc/init.d/hostname.sh
grml-chroot $TARGET hostname -F /etc/hostname
chroot $TARGET apt-get -y install resolvconf libnss-myhostname

Loading…
Cancel
Save