Skip to content

Commit

Permalink
vm: fix volume_config
Browse files Browse the repository at this point in the history
- kernel volume shouldn't have snap_on_start, it's read-only volume
  anyway
- root volume of AppVM should have placeholder for 'source'
- private volume of AppVM should _not_ have placeholder for 'source'
(it's ignored anyway, because snap_on_start=False)

QubesOS/qubes-issues#2256
  • Loading branch information
marmarek committed Jun 9, 2017
1 parent fd5386c commit 80b459b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions qubes/vm/appvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class AppVM(qubes.vm.qubesvm.QubesVM):
'snap_on_start': True,
'save_on_stop': False,
'rw': False,
'source': None,
'internal': True
},
'private': {
Expand All @@ -56,7 +57,6 @@ class AppVM(qubes.vm.qubesvm.QubesVM):
'snap_on_start': False,
'save_on_stop': True,
'rw': True,
'source': None,
'size': defaults['private_img_size'],
'internal': True
},
Expand All @@ -70,7 +70,6 @@ class AppVM(qubes.vm.qubesvm.QubesVM):
'kernel': {
'name': 'kernel',
'pool': 'linux-kernel',
'snap_on_start': True,
'rw': False,
'internal': True
}
Expand Down
1 change: 0 additions & 1 deletion qubes/vm/dispvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def __init__(self, *args, **kwargs):
'kernel': {
'name': 'kernel',
'pool': 'linux-kernel',
'snap_on_start': True,
'rw': False,
'internal': True
}
Expand Down
1 change: 0 additions & 1 deletion qubes/vm/templatevm.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def __init__(self, *args, **kwargs):
'kernel': {
'name': 'kernel',
'pool': 'linux-kernel',
'snap_on_start': True,
'internal': True,
'rw': False
}
Expand Down

0 comments on commit 80b459b

Please sign in to comment.