Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MNT Reform Tools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Reform
  • MNT Reform Tools
  • Merge requests
  • !26

rework reform-boot-config

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Johannes Schauer Marin Rodrigues requested to merge josch/reform-tools:reform-boot-config into main Oct 09, 2022
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

rework reform-boot-config

  • support all combinations of:
    • new root partition is already monted as /
    • new root partition lives elsewhere
    • new /boot partition is the same as the already configured one
    • new /boot is already mounted
    • new /boot device doesn't exist
  • error out if anything is still mounted that shouldn't be mounted
  • only mount when necessary
  • only use chroot if new root device is not /
  • use traps to always unmount everything and clean tmpfiles uponfailure
  • consult /etc/fstab of new root for location of old /boot
  • copy over contents of old /boot to new one if necessary
Edited Oct 09, 2022 by Johannes Schauer Marin Rodrigues
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: reform-boot-config