Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A arch-boxes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
    • Locked Files
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • arch-boxes
  • Merge requests
  • !179

Align the partition end sectors and add partition names

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open nl6720 requested to merge nl6720/arch-boxes:sgdisk-align-end into master Jun 17, 2022
  • Overview 2
  • Commits 2
  • Pipelines 7
  • Changes 2

sgdisk by default only aligns the partition start. Use the --align-end option to align the partition end too. See https://wiki.archlinux.org/title/Advanced_Format#Partition_alignment. Just to note, this doesn't make the images usable on 4Kn disks.

Additionally:

  • Add PARTLABEL values to all partitions.
  • Do not hardcode the partition number and end sectors in sgdisk commands by using the special value "0".
  • Follow the Discoverable Partitions Specification by using the "Linux x86-64 root" partition type.
  • Do not create a UUID for the swap file.
Edited Aug 23, 2022 by nl6720
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: sgdisk-align-end