vm: fix volume_config

- 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
This commit is contained in:
Marek Marczykowski-Górecki 2017-06-09 04:44:22 +02:00
parent fd5386cd47
commit 80b459b6d5
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
3 changed files with 1 additions and 4 deletions

View File

@ -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': {
@ -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
},
@ -70,7 +70,6 @@ class AppVM(qubes.vm.qubesvm.QubesVM):
'kernel': {
'name': 'kernel',
'pool': 'linux-kernel',
'snap_on_start': True,
'rw': False,
'internal': True
}

View File

@ -68,7 +68,6 @@ class DispVM(qubes.vm.qubesvm.QubesVM):
'kernel': {
'name': 'kernel',
'pool': 'linux-kernel',
'snap_on_start': True,
'rw': False,
'internal': True
}

View File

@ -94,7 +94,6 @@ class TemplateVM(QubesVM):
'kernel': {
'name': 'kernel',
'pool': 'linux-kernel',
'snap_on_start': True,
'internal': True,
'rw': False
}