On Wed, 2022-07-20 at 12:45 +0100, Richard W.M. Jones wrote:
> How about this instead?
>
> It actually changes the behaviour slightly. Currently a
> /etc/hostname
> which contains the single character '\n' would return
> inspect_get_hostname = "" (which seems wrong). This is the default
>
On Wed, Jul 20, 2022 at 01:36:25PM -0400, dzr...@gmail.com wrote:
> On Wed, 2022-07-20 at 12:45 +0100, Richard W.M. Jones wrote:
> > How about this instead?
> >
> > It actually changes the behaviour slightly. Currently a
> > /etc/hostname
> > which contains the single character '\n' would return
On 07/20/22 13:45, Richard W.M. Jones wrote:
> How about this instead?
>
> It actually changes the behaviour slightly. Currently a /etc/hostname
> which contains the single character '\n' would return
> inspect_get_hostname = "" (which seems wrong). This is the default
> /etc/hostname for
There are some linux systems in the wild where the /etc/hostname file
does not contain the configured hostname as sole line in that file. This
file actually allows for comments [1] starting with "#" and the original
logic would extract the comment line instead of the hostname on such
systems. This
How about this instead?
It actually changes the behaviour slightly. Currently a /etc/hostname
which contains the single character '\n' would return
inspect_get_hostname = "" (which seems wrong). This is the default
/etc/hostname for virt-builder images.
I think this is because in the current