#!/usr/bin/python2 -O
# vim: fileencoding=utf-8

#
# The Qubes OS Project, https://www.qubes-os.org/
#
# Copyright (C) 2016  Marek Marczykowski-Górecki
#                              <marmarek@invisiblethingslab.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

import qubes.events
import qubes.vm.qubesvm

class StandaloneVM(qubes.vm.qubesvm.QubesVM):
    '''Standalone Application VM'''

    pass

@@ -962,16 +962,36 @@
 .qubesvm
+%0Aimport qubes.config
 %0A%0Aclass 
@@ -1075,9 +1075,944 @@
     
-pass
+def __init__(self, *args, **kwargs):%0A        self.volume_config = %7B%0A            'root': %7B%0A                'name': 'root',%0A                'pool': 'default',%0A                'volume_type': 'origin',%0A                'size': qubes.config.defaults%5B'root_img_size'%5D,%0A            %7D,%0A            'private': %7B%0A                'name': 'private',%0A                'pool': 'default',%0A                'volume_type': 'origin',%0A                'size': qubes.config.defaults%5B'private_img_size'%5D,%0A            %7D,%0A            'volatile': %7B%0A                'name': 'volatile',%0A                'pool': 'default',%0A                'volume_type': 'volatile',%0A                'size': qubes.config.defaults%5B'root_img_size'%5D,%0A            %7D,%0A            'kernel': %7B%0A                'name': 'kernel',%0A                'pool': 'linux-kernel',%0A                'volume_type': 'read-only',%0A            %7D%0A        %7D%0A        super(StandaloneVM, self).__init__(*args, **kwargs)
 %0A

set volume_config