Merge pull request #406 from mwhudson/install-correct-kernel

install the booted kernel
This commit is contained in:
Michael Hudson-Doyle 2018-12-14 11:29:13 +13:00 committed by GitHub
commit ebee2667a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -214,6 +214,13 @@ class SubiquityModel:
},
}
if os.path.exists("/run/kernel-meta-package"):
with open("/run/kernel-meta-package") as fp:
kernel_package = fp.read().decode('ascii').strip()
config['kernel'] = {
'package': kernel_package,
}
if self.proxy.proxy:
config['write_files']['snapd_dropin'] = {
'path': 'etc/systemd/system/snapd.service.d/snap_proxy.conf',