From 48d921f9cf8104b83e79e1fbc7a659f6d65f428f Mon Sep 17 00:00:00 2001 From: Stuart Prescott Date: Sat, 29 Jul 2017 20:30:00 +1000 Subject: Add support for debootstrap variants Support a 'variant' keyword that permits selection of the debootstrap variant, including '-' (default), 'minbase', 'buildd'. --- vmdb/plugins/debootstrap_plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmdb/plugins/debootstrap_plugin.py b/vmdb/plugins/debootstrap_plugin.py index 61625ef..178bd95 100644 --- a/vmdb/plugins/debootstrap_plugin.py +++ b/vmdb/plugins/debootstrap_plugin.py @@ -38,8 +38,9 @@ class DebootstrapStepRunner(vmdb.StepRunnerInterface): tag = step['target'] target = state.mounts[tag] mirror = step['mirror'] + variant = step.get('variant', '-') if not (suite and tag and target and mirror): raise Exception('missing arg for debootstrap step') vmdb.progress( 'Debootstrap {} {} {}'.format(suite, target, mirror)) - vmdb.runcmd(['debootstrap', suite, target, mirror]) + vmdb.runcmd(['debootstrap', '--variant', variant, suite, target, mirror]) -- cgit v1.2.1