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
38da150e
Commit
38da150e
authored
Jul 13, 2020
by
Nigel Kukard
Browse files
Mount all efi filesystems
parent
8966620a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/idmslinux_installer/plugins/mount_filesystems.py
View file @
38da150e
...
...
@@ -64,16 +64,19 @@ class MountFilesystems(Plugin):
# If we have a efi filesystem, use it
if
'efi'
in
ili_state
.
filesystems
:
ili_state
.
output_callback
(
'Mounting EFI filesystem'
)
# Determine the boot mount point
mount_point
=
'%s%s'
%
(
ili_state
.
target_mount
,
self
.
_efi_dir
)
# Determine the efi path
filesystem
=
ili_state
.
filesystems
[
'efi'
]
# Mount the efi filesystem
mount
=
Mount
(
uuid
=
filesystem
[
'uuid'
],
fstype
=
filesystem
[
'fstype'
],
mount_point
=
mount_point
)
ili_state
.
add_mount
(
mount
)
# Add fstab entry
ili_state
.
add_fstab
(
'efi'
,
mount
.
mount_device
,
self
.
_efi_dir
,
filesystem
[
'fstype'
],
fspass
=
2
)
ili_state
.
output_callback
(
'Mounting EFI filesystems'
)
efi_no
=
1
for
filesystem
in
ili_state
.
filesystems
[
'efi'
]:
# Determine the boot mount point
mount_point
=
f
'
{
self
.
_efi_dir
}
/
{
efi_no
}
'
mount_point_host
=
f
'
{
ili_state
.
target_mount
}{
mount_point
}
'
# Mount the efi filesystem
mount
=
Mount
(
uuid
=
filesystem
[
'uuid'
],
fstype
=
filesystem
[
'fstype'
],
mount_point
=
mount_point_host
)
ili_state
.
add_mount
(
mount
)
# Add fstab entry
ili_state
.
add_fstab
(
'efi'
,
mount
.
mount_device
,
mount_point
,
filesystem
[
'fstype'
],
fspass
=
2
)
# Bump EFI number
efi_no
+=
1
# Set the target root
ili_state
.
target_root
=
ili_state
.
target_mount
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