Rename 18hostname -> 06hostname
authorChris Lamb <chris@chris-lamb.co.uk>
Fri, 21 Mar 2008 20:06:30 +0000 (20:06 +0000)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:47:55 +0000 (17:47 +0100)
commitbc986e631b2dcba0f5ce7c742d498f5820028f0b
tree4a7a7da01f776b99679a877d6da4c1a08f26ef6f
parent37353900b169c3f02e8163be9d3b20569ad32afe
Rename 18hostname -> 06hostname

We must configure a valid hostname in the target before 10adduser, or sudo
fails with "unable to resolve host (none)" - before 18hostname is called
/root/etc/hostname is empty.

This was resulting in the "su as sudo" modifications not being applied in
the target which was causing X configuration applications to show different
behaviours when attempting elevating their priviledges.

Reordering the hostname configuration seems somewhat preferable to
applying a hack inside 10adduser to use 'su' or similar, as other
pre-XXhostname calls may incorporate calls to sudo in the future.
scripts/live-bottom/06hostname [moved from scripts/live-bottom/18hostname with 100% similarity]