Re: [Swan-dev] [ot] getting systemd to set the KVM test domain's hostname

2020-08-06 Thread Andrew Cagney
On Thu, 6 Aug 2020 at 04:58, Tuomo Soini wrote: > > On Thu, 6 Aug 2020 09:23:19 +0200 > Antony Antony wrote: > > > On Wed, Aug 05, 2020 at 07:38:28PM -0400, Andrew Cagney wrote: > > > it is a starting point, however the disk image (or clones) are: > > > - created using kick-start > > > - booted a

Re: [Swan-dev] [ot] getting systemd to set the KVM test domain's hostname

2020-08-06 Thread Andrew Cagney
On Thu, 6 Aug 2020 at 03:24, Antony Antony wrote: > > On Wed, Aug 05, 2020 at 07:38:28PM -0400, Andrew Cagney wrote: > > it is a starting point, however the disk image (or clones) are: > > - created using kick-start > > - booted as base to install packages > > - booted as build to build libvirt >

Re: [Swan-dev] [ot] getting systemd to set the KVM test domain's hostname

2020-08-06 Thread Tuomo Soini
On Thu, 6 Aug 2020 09:23:19 +0200 Antony Antony wrote: > On Wed, Aug 05, 2020 at 07:38:28PM -0400, Andrew Cagney wrote: > > it is a starting point, however the disk image (or clones) are: > > - created using kick-start > > - booted as base to install packages > > - booted as build to build libvir

Re: [Swan-dev] [ot] getting systemd to set the KVM test domain's hostname

2020-08-06 Thread Antony Antony
On Wed, Aug 05, 2020 at 07:38:28PM -0400, Andrew Cagney wrote: > it is a starting point, however the disk image (or clones) are: > - created using kick-start > - booted as base to install packages > - booted as build to build libvirt I have a feeling a better approch is cpompletely avoid the booti

Re: [Swan-dev] [ot] getting systemd to set the KVM test domain's hostname

2020-08-05 Thread Andrew Cagney
On Wed, 5 Aug 2020 at 20:55, Paul Wouters wrote: > > On Wed, 5 Aug 2020, Andrew Cagney wrote: > > >> Using a oneshot service we install via anaconda ? > >> > >> https://gist.github.com/tuxfight3r/937be13b08395101d7201883d7410a0d > > > > it is a starting point, however the disk image (or clones) ar

Re: [Swan-dev] [ot] getting systemd to set the KVM test domain's hostname

2020-08-05 Thread Paul Wouters
On Wed, 5 Aug 2020, Andrew Cagney wrote: Using a oneshot service we install via anaconda ? https://gist.github.com/tuxfight3r/937be13b08395101d7201883d7410a0d it is a starting point, however the disk image (or clones) are: - created using kick-start - booted as base to install packages - boot

Re: [Swan-dev] [ot] getting systemd to set the KVM test domain's hostname

2020-08-05 Thread Andrew Cagney
On Wed, 5 Aug 2020 at 18:49, Paul Wouters wrote: > > On Wed, 5 Aug 2020, Andrew Cagney wrote: > > > > > (somewhat connected to breakage on testing) > > > > When a test domain first boots the script swan-transmorify. This > > script uses a table to map from the MACAddress of the interfaces to > >

Re: [Swan-dev] [ot] getting systemd to set the KVM test domain's hostname

2020-08-05 Thread Paul Wouters
On Wed, 5 Aug 2020, Andrew Cagney wrote: (somewhat connected to breakage on testing) When a test domain first boots the script swan-transmorify. This script uses a table to map from the MACAddress of the interfaces to the test domain's hostname. It then sets the hostname using <>. Can anyone

[Swan-dev] [ot] getting systemd to set the KVM test domain's hostname

2020-08-05 Thread Andrew Cagney
(somewhat connected to breakage on testing) When a test domain first boots the script swan-transmorify. This script uses a table to map from the MACAddress of the interfaces to the test domain's hostname. It then sets the hostname using <>. Can anyone think of a way to do this using systemd? (I