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.
This commit is contained in:
Anders Ingemann 2016-06-05 13:35:01 +02:00
parent df7df19fb9
commit 0d54ad68ec

View file

@ -1,5 +1,6 @@
import tasks import tasks
from bootstrapvz.providers.ec2.tasks import ebs 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.providers.virtualbox.tasks import guest_additions
from bootstrapvz.common.tasks import loopback from bootstrapvz.common.tasks import loopback
from bootstrapvz.common.tasks import volume from bootstrapvz.common.tasks import volume
@ -30,6 +31,12 @@ def resolve_tasks(taskset, manifest):
filesystem.CreateBootMountDir, filesystem.CreateBootMountDir,
apt.DisableDaemonAutostart, apt.DisableDaemonAutostart,
dpkg.InitializeBootstrapFilterList,
dpkg.CreateDpkgCfg,
dpkg.CreateBootstrapFilterScripts,
dpkg.FilterLocales,
dpkg.ExcludeDocs,
dpkg.DeleteBootstrapFilterScripts,
locale.GenerateLocale, locale.GenerateLocale,
bootstrap.MakeTarball, bootstrap.MakeTarball,
bootstrap.Bootstrap, bootstrap.Bootstrap,