mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-10 09:09:50 +00:00
Merge pull request #156 from jbergler/development
Allow mixed kernel/userspace architecture.
This commit is contained in:
commit
2e1c419ea0
2 changed files with 4 additions and 1 deletions
|
@ -40,6 +40,8 @@ properties:
|
|||
properties:
|
||||
architecture:
|
||||
enum: [i386, amd64]
|
||||
userspace_architecture:
|
||||
enum: [i386]
|
||||
bootloader:
|
||||
enum:
|
||||
- pvgrub
|
||||
|
|
|
@ -19,7 +19,8 @@ class AddRequiredCommands(Task):
|
|||
|
||||
def get_bootstrap_args(info):
|
||||
executable = ['debootstrap']
|
||||
options = ['--arch=' + info.manifest.system['architecture']]
|
||||
arch = info.manifest.system.get('userspace_architecture', info.manifest.system.get('architecture'))
|
||||
options = ['--arch=' + arch]
|
||||
if len(info.include_packages) > 0:
|
||||
options.append('--include=' + ','.join(info.include_packages))
|
||||
if len(info.exclude_packages) > 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue