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

Add support for systemd-homed setup for user backup / restore #5

Open
fcrozat opened this issue May 14, 2024 · 0 comments
Open

Add support for systemd-homed setup for user backup / restore #5

fcrozat opened this issue May 14, 2024 · 0 comments

Comments

@fcrozat
Copy link

fcrozat commented May 14, 2024

When reinstalling a system where user account was handled by systemd-homed, we can leverage homectl feature to do 99% of the migration on its own:

  • no need to backup /etc/passwd,/etc/shadow, /etc/group. Instead, we can use homectl inspect -EE on the old system and use the output to homectl create -i . -E or -EE will strip part of the cryptographic keys (we need to decide if the original system keys should be migrated or not).
  • homectl can also give the location of the homedir data, allowing the migration script or either do the btrfs send-receive copy or detect if luks container is used and give its path so it can be copied on the install key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant