summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-06-30 18:24:54 +0300
committerLars Wirzenius <liw@liw.fi>2018-06-30 18:25:23 +0300
commit80c2f607d02d119bca9f304140caceb67153810e (patch)
tree3d5a620e1d7f768d52c71e64df0a0b91bd5dd847
parent06df6dbaf576c5f0bc190262ce22b252ae39a64d (diff)
downloadvmdb2-80c2f607d02d119bca9f304140caceb67153810e.tar.gz
Fix: add "apt-get update" to the end of debootstrap action
-rw-r--r--vmdb/plugins/debootstrap_plugin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/vmdb/plugins/debootstrap_plugin.py b/vmdb/plugins/debootstrap_plugin.py
index 178bd95..5aa7270 100644
--- a/vmdb/plugins/debootstrap_plugin.py
+++ b/vmdb/plugins/debootstrap_plugin.py
@@ -44,3 +44,4 @@ class DebootstrapStepRunner(vmdb.StepRunnerInterface):
vmdb.progress(
'Debootstrap {} {} {}'.format(suite, target, mirror))
vmdb.runcmd(['debootstrap', '--variant', variant, suite, target, mirror])
+ vmdb.runcmd_chroot(target, ['apt-get', 'update'])