[Bug 2026225] Re: failed kernel mapping specification
Olivier Gayot
2026225 at bugs.launchpad.net
Thu Jul 6 14:51:34 UTC 2023
I'm not sure yet why you ended up in this scenario. It looks like a
subiquity bug.
That said, the install_kernel function in curthooks has code to handle
kernel_cfg=None, but then it invokes the .get() method regardless. This
is obviously wrong.
if kernel_cfg is not None:
kernel_package = kernel_cfg.get('package')
kernel_fallback = kernel_cfg.get('fallback-package')
else:
kernel_package = None
kernel_fallback = None
config.merge_config(mapping, kernel_cfg.get('mapping', {}))
** Also affects: curtin
Importance: Undecided
Status: New
** Changed in: curtin
Status: New => In Progress
** Changed in: curtin
Assignee: (unassigned) => Olivier Gayot (ogayot)
** Merge proposal linked:
https://code.launchpad.net/~ogayot/curtin/+git/curtin/+merge/446197
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/2026225
Title:
failed kernel mapping specification
Status in curtin:
In Progress
Status in subiquity:
New
Bug description:
In testing the current desktop installer ISOs with a freshly build
u-d-i snap, curthooks fails like follows:
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/installing-kernel: FAIL: installing kernel
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
Traceback (most recent call last):
File "/snap/ubuntu-desktop-installer/x1/lib/python3.10/site-packages/curtin/commands/main.py", line 202, in main
ret = args.func(args)
File "/snap/ubuntu-desktop-installer/x1/lib/python3.10/site-packages/curtin/commands/curthooks.py", line 1918, in curthooks
builtin_curthooks(cfg, target, state)
File "/snap/ubuntu-desktop-installer/x1/lib/python3.10/site-packages/curtin/commands/curthooks.py", line 1752, in builtin_curthooks
install_kernel(cfg, target)
File "/snap/ubuntu-desktop-installer/x1/lib/python3.10/site-packages/curtin/commands/curthooks.py", line 375, in install_kernel
config.merge_config(mapping, kernel_cfg.get('mapping', {}))
AttributeError: 'NoneType' object has no attribute 'get'
'NoneType' object has no attribute 'get'
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
happened as part of an autoinstall test, no override of the kernel
value.
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/2026225/+subscriptions
More information about the foundations-bugs
mailing list