[Vmdebootstrap-devel] Bug#800910: vmdebootstrap: creates /etc/inittab even if sysvinit is not installed

Antonio Terceiro terceiro at debian.org
Mon Oct 5 00:31:31 UTC 2015


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 <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/vmdebootstrap-devel/attachments/20151004/666022a9/attachment.sig>


More information about the Vmdebootstrap-devel mailing list