[Libguestfs] [PATCH] firstboot: rename systemd service file

Richard W.M. Jones rjones at redhat.com
Wed Aug 3 15:47:26 UTC 2016


On Wed, Aug 03, 2016 at 05:43:43PM +0200, Pino Toscano wrote:
> On Wednesday, 3 August 2016 16:39:46 CEST Richard W.M. Jones wrote:
> > On Wed, Aug 03, 2016 at 05:35:14PM +0200, Pino Toscano wrote:
> > > Currently we install a systemd service named firstboot.service and a
> > > SysV service named virt-sysprep-firstboot.  On systems where systemd is
> > > the init system and runs with the SysV compatibility, the different
> > > names make systemd handle them as different services, and thus trying to
> > > run the firstboot script runner twice.
> > > 
> > > Rename the systemd service to virt-sysprep-firstboot as well: other than
> > > being sligtly less generic, it is also shadowed by the SysV service, and
> > > thus run just once.  To avoid leaving the old systemd service behind, a
> > > simple cleanup strategy is in place, checking the content of the old
> > > firstboot.service to really ensure we are removing one of our versions
> > > of this file.
> > 
> > Ok, but can we name it something other than 'sysprep'?  eg.
> > 'virt-firstboot.service' or 'guestfs-firstboot.service' or similar?
> 
> That will involve also renaming the SysV services, and I wanted to limit
> the amount of changes.  However I can do that, if needed.

Up to you of course, but if we're going to rename the services,
might as well lose the historical baggage entirely IMO.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list