Skip to content
Snippets Groups Projects

rework reform-boot-config

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 by Johannes Schauer Marin Rodrigues

Merge request reports

Approval is optional

Merged by minuteminute 2 years ago (Dec 8, 2022 6:37pm UTC)

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading