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

Added boot_hint property

parent ddd1867d
......@@ -80,6 +80,9 @@ class IliState:
# MBR's which we'll be installing boot records on
_boot_mbrs: List[str]
# Hint to use for grub to find the boot files
_boot_hint: Optional[str]
# Filesystems to install on, indexed by 'efi', 'boot', 'root'
_filesystems: Dict[str, Dict[str, str]]
......@@ -145,6 +148,7 @@ class IliState:
self._blockdevices = {}
self._boot_mbrs = []
self._boot_hint = None
self._filesystems = {}
......@@ -495,6 +499,16 @@ class IliState:
"""Return the list of block devices that we should install MBR's on."""
return self._boot_mbrs
@property
def boot_hint(self):
"""Return the grub boot hint for the boot filesystem."""
return self._boot_hint
@boot_hint.setter
def boot_hint(self, boot_hint: str):
"""Set the grub boot hint for the boot filesystem."""
self._boot_hint = boot_hint
# Filesystems
def add_filesystem(self, usage: str, uuid: str, fstype: str, device: str):
"""Add a filesystem to install on."""
......
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