mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
16 lines
430 B
Python
16 lines
430 B
Python
from base import Task
|
|
from common import phases
|
|
import os
|
|
|
|
|
|
class VirtIO(Task):
|
|
description = 'Install virtio modules'
|
|
phase = phases.system_modification
|
|
|
|
@classmethod
|
|
def run(cls, info):
|
|
modules = os.path.join(info.root, '/etc/initramfs-tools/modules')
|
|
with open(modules, "a") as modules_file:
|
|
modules_file.write("\n")
|
|
for module in info.manifest.bootstrapper.get('virtio', []):
|
|
modules_file.write(module+"\n")
|