Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Software
idms-linux-installer
Commits
f677aa6d
Commit
f677aa6d
authored
Jul 13, 2020
by
Nigel Kukard
Browse files
Added boot_hint property
parent
ddd1867d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/idmslinux_installer/ilistate.py
View file @
f677aa6d
...
...
@@ -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."""
...
...
src/idmslinux_installer/plugins/
config_system
/mkinitcpio.py
→
src/idmslinux_installer/plugins/
post_install
/mkinitcpio.py
View file @
f677aa6d
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment