Skip to content

Commit

Permalink
Refactor disk builder for use with context manager
Browse files Browse the repository at this point in the history
In preparation to further context manager related changes
in VolumeManager, LuksDevice, RaidDevice and more the
disk builder code which uses these classes needs to be
refactored beforehand to allow switching to context
manager based cascading of the storage device classes.
This commit does the refactoring and is related to
Issue #2412
  • Loading branch information
schaefi committed Jan 18, 2024
1 parent 0594dcd commit a1783ff
Show file tree
Hide file tree
Showing 3 changed files with 529 additions and 381 deletions.
3 changes: 2 additions & 1 deletion kiwi/bootloader/config/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def write_meta_data(
pass

def setup_disk_image_config(
self, boot_uuid, root_uuid, hypervisor, kernel, initrd, boot_options={}
self, boot_uuid=None, root_uuid=None, hypervisor=None,
kernel=None, initrd=None, boot_options={}
):
"""
Create boot config file to boot from disk.
Expand Down
Loading

0 comments on commit a1783ff

Please sign in to comment.