mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
minor cleanup in kvm provider
This commit is contained in:
parent
9d3ab025ea
commit
29d4bdf70d
1 changed files with 2 additions and 5 deletions
|
@ -1,7 +1,5 @@
|
|||
from base import Task
|
||||
from common import phases
|
||||
from common.tasks.packages import InstallPackages
|
||||
from common.exceptions import TaskError
|
||||
import os
|
||||
|
||||
|
||||
|
@ -11,9 +9,8 @@ class VirtIO(Task):
|
|||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
from common.tools import log_call
|
||||
modules = os.path.join(info.root,'/etc/initramfs-tools/modules')
|
||||
modules = os.path.join(info.root, '/etc/initramfs-tools/modules')
|
||||
with open(modules, "a") as modules_file:
|
||||
modules_file.write("\n");
|
||||
modules_file.write("\n")
|
||||
for module in info.manifest.bootstrapper.get('virtio', []):
|
||||
modules_file.write(module+"\n")
|
||||
|
|
Loading…
Add table
Reference in a new issue