bootstrap-vz/bootstrapvz/providers/gce/tasks/apt.py
Zach Marano 1f747788c1 Fix missing source repo in GCE images. Add back baseline apt cache as
well. Add in additional GCE guest package into manifests (init files
were split into their own package to make the python package adhere to
pypi standards).
2016-07-21 14:14:42 -07:00

16 lines
525 B
Python

from bootstrapvz.base import Task
from bootstrapvz.common import phases
from bootstrapvz.common.tasks import apt
from bootstrapvz.common.tasks import network
from bootstrapvz.common.tools import log_check_call
class AddBaselineAptCache(Task):
description = 'Add a baseline apt cache into the image.'
phase = phases.system_cleaning
predecessors = [apt.AptClean]
successors = [network.RemoveDNSInfo]
@classmethod
def run(cls, info):
log_check_call(['chroot', info.root, 'apt-get', 'update'])