This seems racey. Ben and I both report having sen this on server build of 20120919, but only intermittently.
To add to the oddness, on 20120919 desktop (where it seems to reproduce more frequently), I moved /bin/hostname to /bin/hostname.real, then:
$ cat /bin/hostname
#!/bin/sh
so during boot the only thing that called /bin/hostname was the upstart job 'hostname'.
However, just running 'sudo hostname -b -F /etc/hostname' behaves correctly.
This seems racey. Ben and I both report having sen this on server build of 20120919, but only intermittently.
To add to the oddness, on 20120919 desktop (where it seems to reproduce more frequently), I moved /bin/hostname to /bin/hostname.real, then:
$ cat /bin/hostname
#!/bin/sh
if [ $# -ne 0 ]; then
{
echo "== pid=$$ ppid=$PPID JOB=$UPSTART_JOB: $* =="
cat /proc/$PPID/cmdline
echo
} >/run/hostname.log 2>&1
fi
exec /bin/hostname.real "$@"
$ cat /run/hostname.log
== pid=212 ppid=1 JOB=hostname: -b -F /etc/hostname ==
/sbin/init
so during boot the only thing that called /bin/hostname was the upstart job 'hostname'.
However, just running 'sudo hostname -b -F /etc/hostname' behaves correctly.