- the defaults file is now installed automatically; even though all
settings are commented out, this allows for easier configuration
+- it is now possible to override the "components" argument to
+ debootstrap, to be able to install more packages (e.g. from contrib,
+ or from universe) (fixes issue 254)
- all existing hooks are now distributed in the archive and also
installed via `make install' (fixes issue 283)
- the console activation for xen-pvm hypervisor has been corrected;
- EXTRAPKGS: most OSes will need some extra packages installed to make
them work nicely under Xen; the example file containts a few
suggestions
+- COMPONENTS: if defined, overrides the default debootstrap components
+ ("main"); this can be helpful e.g. by using "main,contrib,nonfree" for
+ Debian, or "main,universe" for Ubuntu
- CUSTOMIZE_DIR: a directory containing customization script for the
instance. (by default $sysconfdir/ganeti/instance-debootstrap/hooks)
See "Customization of the instance" below.
: ${SUITE:="squeeze"}
: ${ARCH:=""}
: ${EXTRA_PKGS:=""}
+: ${COMPONENTS:=""}
: ${CUSTOMIZE_DIR:="@sysconfdir@/ganeti/instance-debootstrap/hooks"}
: ${VARIANTS_DIR:="@sysconfdir@/ganeti/instance-debootstrap/variants"}
: ${GENERATE_CACHE:="yes"}
# INCLUDE will be empty if EXTRA_PKGS is null/empty, otherwise we
# build the full parameter format from it
INCLUDE=${EXTRA_PKGS:+"--include=$EXTRA_PKGS"}
+ COMP=${COMPONENTS:+"--components=$COMPONENTS"}
debootstrap \
--arch "$DPKG_ARCH" \
$INCLUDE \
+ $COMP \
"$SUITE" $TMPDIR $MIRROR
# remove the downloaded debs, as they are no longer needed
# EXTRA_PKGS="acpi-support-base,console-tools,udev,linux-image-686"
# KVM, for squeeze/wheezy amd64:
# EXTRA_PKGS="acpi-support-base,console-tools,udev,linux-image-amd64"
-#
+
+# COMPONENTS: if defined, overrides the default debootstrap components
+# ("main"); when not defined, it will not passed to debootstrap
+# Debian example:
+# COMPONENTS="main,contrib,non-free"
+# Ubuntu example:
+# COMPONENTS="main,universe"
+# Default:
+# COMPONENTS=""
# CUSTOMIZE_DIR: a directory containing scripts to customize the installation.
# The scripts are executed using run-parts