core: default 'include_in_backups' to negative of 'installed_by_rpm'
As we allow to backup template, even if installed by rpm, it makes sense to not include such templates in backup by default.
This commit is contained in:
parent
b3899ba81a
commit
0b0dbfd1e7
@ -146,7 +146,9 @@ class QubesVm(object):
|
||||
else defaults["kernelopts_pcidevs"] if len(self.pcidevs)>0 \
|
||||
else defaults["kernelopts"] },
|
||||
"mac": { "attr": "_mac", "default": None },
|
||||
"include_in_backups": { "default": True },
|
||||
"include_in_backups": {
|
||||
"func": lambda x: x if x is not None
|
||||
else not self.installed_by_rpm },
|
||||
"services": {
|
||||
"default": {},
|
||||
"func": lambda value: eval(str(value)) },
|
||||
|
Loading…
Reference in New Issue
Block a user