Bug#773119: executes firstboot script twice in parallel with systemd

2016-02-18 Thread Michael Ablassmeier
hi,

just a short note as i scratched my head about why my scripts are 
beeing executed twice..

use the following workaround to not make the firstboot script execute
twice while using virt-sysprep with a stock jessie with systemd:

 $ virt-sysprep [..] --delete /etc/init.d/virt-sysprep-firstboot

bye,
- michael



Bug#773119: executes firstboot script twice in parallel with systemd

2014-12-14 Thread martin f krafft
Package: libguestfs-tools
Version: 1:1.29.14-1
Severity: normal
File: /usr/bin/virt-sysprep

virt-sysprep installs LSB compatibility scripts to /etc/rc?.d and
/etc/init.d by the name virt-sysprep-firstboot, and it also installs
a systemd unit firstboot.service. Since systemd units are only
ignored if the LSB init script has exactly the same name, this
causes the sysprep script to be run *twice*, possibly in parallel,
with all weird sort of effects.

I think the best solution will be to rename the systemd unit to
virt-sysprep-firstboot.service, or to avoid running the init.d
script if systemd is detected.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.17-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libguestfs-tools depends on:
ii  libatk1.0-02.14.0-1
ii  libc6  2.19-13
ii  libcairo2  1.14.0-2.1
ii  libconfig9 1.4.9-2
ii  libfontconfig1 2.11.0-6.3
ii  libfreetype6   2.5.2-2
ii  libfuse2   2.9.3-15+b1
ii  libgdk-pixbuf2.0-0 2.31.1-2+b1
ii  libglib2.0-0   2.42.1-1
ii  libgtk2.0-02.24.25-1
ii  libguestfs-perl1:1.29.14-1
ii  libguestfs01:1.29.14-1
ii  libintl-perl   1.23-1
ii  liblzma5   5.1.1alpha+20120614-2+b1
ii  libncurses55.9+20140913-1
ii  libpango-1.0-0 1.36.8-3
ii  libpangocairo-1.0-01.36.8-3
ii  libpangoft2-1.0-0  1.36.8-3
ii  libpcre3   1:8.36-1
ii  libreadline6   6.3-8+b1
ii  libstring-shellquote-perl  1.03-1
ii  libsys-virt-perl   1.2.9-1
ii  libtinfo5  5.9+20140913-1
ii  libvirt0   1.2.10-1
ii  libwin-hivex-perl  1.3.11-1
ii  libxml22.9.2+dfsg1-1

libguestfs-tools recommends no packages.

libguestfs-tools suggests no packages.

-- debconf-show failed


-- 
 .''`.   martin f. krafft madduck@d.o @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)