i think the plugin is a good idea, although simplify the grep a little:

if [ -n "$(dpkg -l libc6-xen | egrep ^ii)" ]; then
XEN_PACKAGES="$XEN_PACKAGES libc6-xen"
...
if [ -n "$XEN_PACKAGES" ] ; then
   chroot .... apt-get install $XEN_PACKAGES
fi

and instead of installing directly, you should be able to add libc6-xen
to the INCLUDES variable, which then debootstrap will install it:

if [ -n "$INCLUDES" ]; then
  INCLUDES="libc6-xen"
else
  INCLUDES="$INCLUDES,libc6-xen"
fi

although i guess, since it's in universe, it won't be available to
debootstrap... will probably work in debian though :)

-- 
x11-common segfaults in ltsp chroot in xen dom0
https://bugs.launchpad.net/bugs/134865
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to