Merge "fix: failed to render preseed with kernel flags (not k=v)"

This commit is contained in:
Zuul 2019-10-06 15:44:56 +00:00 committed by Gerrit Code Review
commit 418d66da10
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
+ # parse the string and find our package param value
+ # e.g. kernel_package=linux-image-4.15.0-34-generic
+ kparams = kernel_opts.split()
+ kdict = dict(kparam.split('=') for kparam in kparams)
+ kdict = dict(kparam.split('=',1) for kparam in kparams if '=' in kparam)
+ if 'kernel_package' in kdict:
+ kpackage = kdict['kernel_package']
+