Skip to content

Provide guidance if restoring across reinstalls (new UUID for LUKS) #302

@EricCousineau-TRI

Description

@EricCousineau-TRI

Is your feature request related to a problem? Please describe.
Relates #301

During experimentation, I found that I had borked my system, and wanted to "start from scratch" by reinstalling, and then attempting to do a snapshot restore.
Of course, I'm realizing that this is perhpas not a supported workflow, as the OS install probably depends on the root partition UUID, at least for LUKS encryption.

Describe the solution you'd like
Options, in ordered by my perceived effort, least to most:

(a) Add documentation that says "beware if you do this, it'll break"

(b) Add documentation with guidance on "here's how you can maybe fix it it" (I have no idea if these actually work)
(b.1) use sudo cryptsetup luksUUID <dev> --uuid <uuid> for encrypted devices, and cross your fingers
(b.2) edit things like /etc/crypttab, /boot/grub/grub.cfg, and replace <old uuid> with <new uuid>, and cross your fingers

(c) Detect that UUID list has changed from backup to restore, notify user that it could be broken, and attempt best effort "replace" (i.e., restore, replace UUIDs, and cross your fingers).

Describe alternatives you've considered
N/A

Additional context
Relates #301

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions