mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
16 lines
487 B
Python
16 lines
487 B
Python
from bootstrapvz.base import Task
|
|
from bootstrapvz.common.tasks import bootstrap
|
|
from .. import phases
|
|
import os.path
|
|
|
|
|
|
class CreateDpkgCfg(Task):
|
|
description = 'Creating /etc/dpkg/dpkg.cfg.d before bootstrapping'
|
|
phase = phases.os_installation
|
|
successors = [bootstrap.Bootstrap]
|
|
|
|
@classmethod
|
|
def run(cls, info):
|
|
dpkgcfg_path = os.path.join(info.root, 'etc/dpkg/dpkg.cfg.d')
|
|
if not os.path.exists(dpkgcfg_path):
|
|
os.makedirs(dpkgcfg_path)
|