On Sun, Oct 04, 2015 at 11:19:15PM +0200, Christian Seiler wrote: > I've attached a patch that does the following: > > - if /etc/inittab exists, nothing changes > > - if /etc/inittab doesn't exist, /etc/inittab.tail is created instead, > and an init script is installed that will update /etc/inittab > and append the /etc/inittab.tail file once it's booted under > sysvinit for the first time (will do nothing under systemd) > > I've successfully tested it on my system.
I do not think vmdebootstrap should carry this kind of complexity. Is there a reason why you can't just test your package against different images, each with its own initial setup? If you do this, even your test code will be simpler and you don't need to do this dance. That said, I do think that it makes sense for vmdebootstrap to only append to inittab if it already exists (i.e. sysvinit is installed). -- Antonio Terceiro <terce...@debian.org>
signature.asc
Description: PGP signature