Added the default_user property from the Qube to the qubesdb so it is available when starting X. This is the 1st part of a fix for issue https://github.com/QubesOS/qubes-issues/issues/2372

This commit is contained in:
Yassine Ilmi 2018-02-01 00:12:51 +00:00
parent 9b5256f002
commit 1c3b412ef8
No known key found for this signature in database
GPG Key ID: 2E294120031F1D95

View File

@ -1798,6 +1798,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
self.untrusted_qdb.write('/name', self.name) self.untrusted_qdb.write('/name', self.name)
self.untrusted_qdb.write('/type', self.__class__.__name__) self.untrusted_qdb.write('/type', self.__class__.__name__)
self.untrusted_qdb.write('/default_user', self.default_user)
self.untrusted_qdb.write('/qubes-vm-updateable', str(self.updateable)) self.untrusted_qdb.write('/qubes-vm-updateable', str(self.updateable))
self.untrusted_qdb.write('/qubes-vm-persistence', self.untrusted_qdb.write('/qubes-vm-persistence',
'full' if self.updateable else 'rw-only') 'full' if self.updateable else 'rw-only')