mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
236b56bada
3 changed files with 4 additions and 7 deletions
|
@ -23,7 +23,7 @@ Other depencies include:
|
|||
* euca2ools
|
||||
* xfsprogs (If you want to use XFS as a filesystem)
|
||||
Also the following python libraries are required:
|
||||
* **boto**
|
||||
* **boto** ([version 2.14.0 or higher](https://github.com/boto/boto))
|
||||
* **jsonschema** ([version 2.0.0](https://pypi.python.org/pypi/jsonschema), only available through pip)
|
||||
* **termcolor**
|
||||
* **fysom**
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
"sources": {
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^\\w+$": {
|
||||
"^[^\/\\0]+$": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
|
|
|
@ -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