Skip to content

Commit

Permalink
Ensure that /boot partition is not required
Browse files Browse the repository at this point in the history
In the general case, if we have a single operating system, there's no
need to create the /boot partition as long as our hardware is recent.
New machines don't have the old restrictions that required the creation of the /boot partition.

This new attribute will be used in the front-end to guide the users who
are doing manual mount point assignment.

Relevant to: rhbz#2234640
  • Loading branch information
KKoukiou committed Nov 23, 2023
1 parent 149f6fd commit 4b89b32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyanaconda/modules/storage/devicetree/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ def _get_platform_mount_point_data(self, spec):
data.required_filesystem_type = spec.fstype or ""
data.encryption_allowed = spec.encrypted
data.logical_volume_allowed = spec.lv
data.is_required = bool(spec.is_required)

return data

Expand Down
6 changes: 4 additions & 2 deletions pyanaconda/modules/storage/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def _boot_partition(self):
"""
return PartSpec(
mountpoint="/boot",
size=Size("1GiB")
size=Size("1GiB"),
is_required=False
)


Expand Down Expand Up @@ -429,7 +430,8 @@ def _boot_partition(self):
return PartSpec(
mountpoint="/boot",
size=Size("1GiB"),
lv=False
lv=False,
is_required=False
)


Expand Down

0 comments on commit 4b89b32

Please sign in to comment.