From 0d54ad68ecb29f275baff4ab6a4e949e2623f492 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sun, 5 Jun 2016 13:35:01 +0200 Subject: [PATCH] prebootstrapped: Take minimize_size plugin into account The dpkg tasks modify the volume before debootstrap, so when re-creating a snapshot we need to remove them as well. --- bootstrapvz/plugins/prebootstrapped/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bootstrapvz/plugins/prebootstrapped/__init__.py b/bootstrapvz/plugins/prebootstrapped/__init__.py index c0fca42..49022b5 100644 --- a/bootstrapvz/plugins/prebootstrapped/__init__.py +++ b/bootstrapvz/plugins/prebootstrapped/__init__.py @@ -1,5 +1,6 @@ import tasks from bootstrapvz.providers.ec2.tasks import ebs +from bootstrapvz.plugins.minimize_size.tasks import dpkg from bootstrapvz.providers.virtualbox.tasks import guest_additions from bootstrapvz.common.tasks import loopback from bootstrapvz.common.tasks import volume @@ -30,6 +31,12 @@ def resolve_tasks(taskset, manifest): filesystem.CreateBootMountDir, apt.DisableDaemonAutostart, + dpkg.InitializeBootstrapFilterList, + dpkg.CreateDpkgCfg, + dpkg.CreateBootstrapFilterScripts, + dpkg.FilterLocales, + dpkg.ExcludeDocs, + dpkg.DeleteBootstrapFilterScripts, locale.GenerateLocale, bootstrap.MakeTarball, bootstrap.Bootstrap,