On 01/07/2019 10:38 PM, Richard Purdie wrote:
On Fri, 2018-12-14 at 21:45 +, Burton, Ross wrote:
On Fri, 30 Nov 2018 at 02:18, Chen Qi wrote:
We default hostname to ${MACHINE}, but it's not in /etc/hosts,
resulting in commands like `hostname -f' failing due to lack
of entry.
So add entry
On Fri, 2018-12-14 at 21:45 +, Burton, Ross wrote:
> On Fri, 30 Nov 2018 at 02:18, Chen Qi wrote:
> > We default hostname to ${MACHINE}, but it's not in /etc/hosts,
> > resulting in commands like `hostname -f' failing due to lack
> > of entry.
> >
> > So add entry to /etc/hosts according to
On Wed, Dec 26, 2018 at 5:06 PM Jacob Kroon wrote:
>
> On Fri, Nov 30, 2018 at 3:18 AM Chen Qi wrote:
> >
> > We default hostname to ${MACHINE}, but it's not in /etc/hosts,
> > resulting in commands like `hostname -f' failing due to lack
> > of entry.
> >
> > So add entry to /etc/hosts according
On Fri, Nov 30, 2018 at 3:18 AM Chen Qi wrote:
>
> We default hostname to ${MACHINE}, but it's not in /etc/hosts,
> resulting in commands like `hostname -f' failing due to lack
> of entry.
>
> So add entry to /etc/hosts according to /etc/hostname. We do
> this via pkg_postinst because hostname is
On Fri, 30 Nov 2018 at 02:18, Chen Qi wrote:
> We default hostname to ${MACHINE}, but it's not in /etc/hosts,
> resulting in commands like `hostname -f' failing due to lack
> of entry.
>
> So add entry to /etc/hosts according to /etc/hostname. We do
> this via pkg_postinst because hostname is set
We default hostname to ${MACHINE}, but it's not in /etc/hosts,
resulting in commands like `hostname -f' failing due to lack
of entry.
So add entry to /etc/hosts according to /etc/hostname. We do
this via pkg_postinst because hostname is set in base-files
recipe.
Signed-off-by: Chen Qi
---
On Wed, 2018-11-28 at 10:26 +, Burton, Ross wrote:
> What if the hostname entry already exists? $sysconfdir instead of
> hard-coding etc.
>
> I can't help but think a better solution would be to simply move
> /etc/hosts to base-files, so it can be updated at the same time as
> hostname.
I'm
What if the hostname entry already exists? $sysconfdir instead of
hard-coding etc.
I can't help but think a better solution would be to simply move
/etc/hosts to base-files, so it can be updated at the same time as
hostname.
Ross
On Mon, 26 Nov 2018 at 06:51, Chen Qi wrote:
>
> We default
We default hostname to ${MACHINE}, but it's not in /etc/hosts,
resulting in commands like `hostname -f' failing due to lack
of entry.
So add entry to /etc/hosts according to /etc/hostname. We do
this via pkg_postinst because hostname is set in base-files
recipe.
Signed-off-by: Chen Qi
---