diff options
author | Stuart Prescott <stuart@nanonanonano.net> | 2017-07-29 20:30:00 +1000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-09-16 12:39:06 +0300 |
commit | 48d921f9cf8104b83e79e1fbc7a659f6d65f428f (patch) | |
tree | 294cb90e4f3fb35c710731cafe69bcda166fc4b7 | |
parent | 7f6f7c285b4828c9323004b20a0421f243219ac4 (diff) | |
download | vmdb2-48d921f9cf8104b83e79e1fbc7a659f6d65f428f.tar.gz |
Add support for debootstrap variants
Support a 'variant' keyword that permits selection of the debootstrap
variant, including '-' (default), 'minbase', 'buildd'.
-rw-r--r-- | vmdb/plugins/debootstrap_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
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]) |