mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
17 lines
487 B
Python
17 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)
|