Merge pull request #685 from mwhudson/copy-md5check-file

copy /run/casper-md5check.json to /var/log/installer
This commit is contained in:
Dimitri John Ledkov 2020-04-07 09:04:52 +01:00 committed by GitHub
commit 367e912cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -289,6 +289,14 @@ class SubiquityModel:
}, },
} }
if os.path.exists('/run/casper-md5check.json'):
with open('/run/casper-md5check.json') as fp:
config['write_files']['md5check'] = {
'path': 'var/log/installer/casper-md5check.json',
'content': fp.read(),
'permissions': 0o644,
}
for model_name in INSTALL_MODEL_NAMES: for model_name in INSTALL_MODEL_NAMES:
model = getattr(self, model_name) model = getattr(self, model_name)
log.debug("merging config from %s", model) log.debug("merging config from %s", model)