From 90b459a5dbf07e42f3e792064a168149afcd0ee0 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 12 Aug 2015 18:21:08 +0200 Subject: [PATCH] dib: expand doc on external dependencies for appliance --- dib/virt-dib.pod | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/dib/virt-dib.pod b/dib/virt-dib.pod index 62e980e35..aafeacddd 100644 --- a/dib/virt-dib.pod +++ b/dib/virt-dib.pod @@ -493,6 +493,25 @@ as temporary location, for example: env TMPDIR=$PWD/local-tmp virt-dib ... rm -rf local-tmp +=head1 EXTRA DEPENDENCIES + +Because of virt-dib runs most of the elements in its own appliance, +all the tools and libraries used by elements running outside the +guest (typically C, C, and C) +need to be present in the appliance as well. In case they +are not, scripts will fail mostly with a C error. + +For tools and libraries packaged by the distribution, the easy +solution is to tell libguestfs to include additional packages in the +appliance. This is doable by e.g. creating a new file with the +additional packages: + + # echo wget > /usr/lib64/guestfs/supermin.d/dib-my-extra + +The actual path to the F directory depends on the +distribution; additional files can list more packages, each in +its own line. + =head1 COMPARISON WITH DISKIMAGE-BUILDER Virt-dib is intended as safe replacement for C @@ -564,6 +583,11 @@ directories =back +=item + +extra tools needed on some out-of-chroot phases need to be available +in the appliance, see L. + =back Elements themselves should notice no difference in they way