Bug#637627: hostname -A has multiple values

Thorsten Glaser t.glaser at tarent.de
Tue Aug 4 12:01:24 UTC 2015


On Mon, 3 Aug 2015, Gianfranco Costamagna wrote:

> what about adding a cut -d " " -f 1?

This probably works… but I’d either do something like:

mailname=$(hostname -f 2>/dev/null || hostname -A)
echo ${mailname%% *} >…/etc/mailname

Or, even better maybe, copy the /etc/mailname file from outside.

That being said, with USENETWORK=no, it shouldn’t even need one…

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg



More information about the Pbuilder-maint mailing list