~doanac/utah/rsyslog-v4

Viewing all changes in revision 840.

  • Committer: Andy Doan
  • Date: 2013-03-05 21:03:40 UTC
  • Revision ID: andy.doan@canonical.com-20130305210340-3sbqb116dvgcsjff
fix from max

To get rsyslog working from boot time on d-i images, we're passing a netcfg variable on the kernel command line.  The kernel command line is set by _cmdlinesetup, which is normally called during _custominit.  Unfortunately, for VMs, _custominit is also what sets the series, type, and arch of the machine, which are then used to set its final name in a naming convention semi-inherited from vm-tools.  As such, the hostname we pass to the kernel will be something like
utah-808
instead of
utah-808-precise-server-amd64
On physical machines, we don't generate a name anyway, so it's moot.  In alderamin, my best guess is that when the VM boots up and sends a dhcp request with the correct hostname, the dhcp server remembers that, and sends it back in the dhcp response after the machine reboots.  My workstation's dhcp server is less clever, so it lets the machine use the hostname that we pass on the kernel command line, which ends up different from what utah expects.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: