mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
make mirror mandatory in manifest
This commit is contained in:
parent
3dd3e00e5c
commit
398a4da313
2 changed files with 2 additions and 5 deletions
|
@ -16,7 +16,7 @@
|
|||
"device" : { "type" : "string" },
|
||||
"mirror": { "type": "string" }
|
||||
},
|
||||
"required": ["mount_dir"]
|
||||
"required": ["mount_dir", "mirror"]
|
||||
},
|
||||
"system": {
|
||||
"type": "object",
|
||||
|
|
|
@ -13,10 +13,7 @@ def get_bootstrap_args(info):
|
|||
options.append('--include=' + ','.join(include))
|
||||
if len(exclude) > 0:
|
||||
options.append('--exclude=' + ','.join(exclude))
|
||||
if info.manifest.bootstrapper['mirror']:
|
||||
mirror = info.manifest.bootstrapper['mirror']
|
||||
else:
|
||||
mirror = 'http://http.debian.net/debian'
|
||||
mirror = info.manifest.bootstrapper['mirror']
|
||||
arguments = [info.manifest.system['release'], info.root, mirror]
|
||||
return executable, options, arguments
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue