qubes/vm/standalonevm: set volume_config

Otherwise VM wouldn't have any hard disk...
This commit is contained in:
Marek Marczykowski-Górecki 2016-05-21 03:57:23 +02:00 committed by Wojtek Porczyk
parent 5b5f290c23
commit 2d8d78bebe

View File

@ -24,8 +24,35 @@
import qubes.events
import qubes.vm.qubesvm
import qubes.config
class StandaloneVM(qubes.vm.qubesvm.QubesVM):
'''Standalone Application VM'''
pass
def __init__(self, *args, **kwargs):
self.volume_config = {
'root': {
'name': 'root',
'pool': 'default',
'volume_type': 'origin',
'size': qubes.config.defaults['root_img_size'],
},
'private': {
'name': 'private',
'pool': 'default',
'volume_type': 'origin',
'size': qubes.config.defaults['private_img_size'],
},
'volatile': {
'name': 'volatile',
'pool': 'default',
'volume_type': 'volatile',
'size': qubes.config.defaults['root_img_size'],
},
'kernel': {
'name': 'kernel',
'pool': 'linux-kernel',
'volume_type': 'read-only',
}
}
super(StandaloneVM, self).__init__(*args, **kwargs)