diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-02-13 08:58:21 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-02-13 08:58:21 +0200 |
commit | b1a6e4f44d90b80a48772e2dd89598793a16f48c (patch) | |
tree | 4cc2bf951c32e38bae50e71b8b442cfcca4fc761 | |
parent | 1c474a6713b485bac16f2ce166ff87c014d6f5a5 (diff) | |
download | vmdb2-b1a6e4f44d90b80a48772e2dd89598793a16f48c.tar.gz |
Change: always run apt-get update, even when using cached tarball
-rw-r--r-- | vmdb/plugins/qemudebootstrap_plugin.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vmdb/plugins/qemudebootstrap_plugin.py b/vmdb/plugins/qemudebootstrap_plugin.py index 53a1835..9a6ed97 100644 --- a/vmdb/plugins/qemudebootstrap_plugin.py +++ b/vmdb/plugins/qemudebootstrap_plugin.py @@ -51,3 +51,8 @@ class QemuDebootstrapStepRunner(vmdb.StepRunnerInterface): target, mirror]) vmdb.runcmd_chroot(target, ['apt-get', 'update']) + + def run_even_if_skipped(self, step, settings, state): + tag = step['target'] + target = state.tags.get_mount_point(tag) + vmdb.runcmd_chroot(target, ['apt-get', 'update']) |