Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partition mode #189

Merged
merged 3 commits into from
Oct 12, 2023
Merged

Partition mode #189

merged 3 commits into from
Oct 12, 2023

Commits on Oct 12, 2023

  1. disk: Move partition table features into a function

    pt.features() now returns a struct with flags set for
    each feature used in the members of the partition table.
    
    Also adds a test for the new function.
    
    Based on PR #3222
    bcl committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    93615fe View commit details
    Browse the repository at this point in the history
  2. disk: Add support for multiple partitioning modes

    This adds support for AutoLVM mode which uses LVM when there are 1 or
    more extra mountpoints, LVM mode which always uses LVM, and Raw mode
    which always uses raw partitions.
    
    This also removes a panic from ensureLVM, returning an error instead.
    There are cases where the mode can conflict with the selected partition
    table.
    
    Also includes a new test for always using LVM.
    bcl committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    7b99e11 View commit details
    Browse the repository at this point in the history
  3. distro: Add PartitioningMode to ImageOptions

    And use it in the distro's getPartitionTable.
    
    TODO Logic about that combination of things is or is not supported needs
    a more central location than embedded in the functions.
    bcl committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    117134d View commit details
    Browse the repository at this point in the history