summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/06hostname
AgeCommit message (Collapse)Author
2011-03-09Adding debian version 2.0~a1-1.Daniel Baumann
2011-03-09Use "test -s" instead of testing file availability and size.Chris Lamb
2011-03-09Use "grep -qs" over "grep -q" for compatibility (see grep(1))Chris Lamb
2011-03-09Changed HOSTNAME and /etc/hosts handling.Marco Amadori
* This is one of a series of interventions that means to be gentle to debian-live builders and to persistence users; the rationale is that if a file is present on the rootfs it does not need to be overwritten from scratch since its presence means either a live-helper configuration at build time or a persistent/snapshot at run time.
2011-03-09Remove trailing "..." from calls to log_begin_msg - they get added anyway.Chris Lamb
2011-03-09Rename 18hostname -> 06hostnameChris Lamb
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.