Commit b8dd2a93 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Use correct property name

parent edbed96b
......@@ -49,8 +49,8 @@ class ConfigSystemMkinitcpio(Plugin):
sysmkinitcpio.configure(ili_state.target_root, **kwargs)
if ili_state.kernel_preset is None:
raise RuntimeError('The kernel_preset should of been set')
if ili_state.mkinitcpio_preset is None:
raise RuntimeError('The mkinitcpio_preset should of been set')
ili_state.output_callback('Creating mkinitcpio')
sysmkinitcpio.create(ili_state.target_root, ili_state.kernel_preset, ili_state.output_callback)
sysmkinitcpio.create(ili_state.target_root, ili_state.mkinitcpio_preset, ili_state.output_callback)
......@@ -57,13 +57,13 @@ class InstallBase(Plugin):
# Check which kernel we're going to use
if ili_state.kernel == 'LTS':
ili_state.add_base_package('linux-lts')
ili_state.kernel_preset = 'linux-lts'
ili_state.mkinitcpio_preset = 'linux-lts'
elif ili_state.kernel == 'STABLE':
ili_state.add_base_package('linux')
ili_state.kernel_preset = 'linux'
ili_state.mkinitcpio_preset = 'linux'
elif ili_state.kernel == 'HARDENED':
ili_state.add_base_package('linux-hardened')
ili_state.kernel_preset = 'linux-hardened'
ili_state.mkinitcpio_preset = 'linux-hardened'
else:
raise RuntimeError(f'Unknown kernel "{ili_state.kernel}"')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment