mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00

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).
16 lines
525 B
Python
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'])
|