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>
Fri, 21 Mar 2008 20:09:37 +0000 (21:09 +0100)
commitb19387f9c81682794c4779a655fe81cc327eaab8
tree4a7a7da01f776b99679a877d6da4c1a08f26ef6f
parentab6e3f97058a7f47ec2b0a97b7e3e8ae826b66b9
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.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
scripts/live-bottom/06hostname [moved from scripts/live-bottom/18hostname with 100% similarity]