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

Feature Request: Let zsys manage a newly migrated user dataset that replaced the default installed dataset #202

Open
odror opened this issue Mar 23, 2021 · 2 comments

Comments

@odror
Copy link

odror commented Mar 23, 2021

Describe the bug
When migrating user dataset from an old system to the new one. It is not updated by zsys.

To Reproduce

use zfs send/receive to move the dataset. Then rename mount directory or remove the current dataset so that it will not conflict. verify that the mount directory in the received dataset is correct.

zsysctl save - v

should generate zsys snapshot. It does not.

I get the following error.

INFO Requesting to save state for user "dror"
INFO Couldn't find any association for user dataset rpool/USERDATA/dror_zo0whd

Expected behavior
a zsys snapshot should be generated.

  1. ubuntu-bug zsys --save=/tmp/report
  2. Copy paste below /tmp/report content:
[report.txt](https://github.com/ubuntu/zsys/files/6191175/report.txt)

Screenshots
None
Installed versions:

Additional context
None

@odror
Copy link
Author

odror commented Mar 23, 2021

I found a workaround for the issue.
I had to change the dateset property property com.ubuntu.zsys:bootfs-datasets to match the new computer.

Please include a command to include new user datasets.

@didrocks
Copy link
Member

This is not a workaround, but the actual implementation :)

I would rephrase the bug to something like a feature request: "Please include a command to include new user datasets" (this would ensure the dataset is set in /USERDATA/ + proceed the same tagging as you did). Mind retitling it?

@odror odror changed the title zsys ignores a newly migrated user dataset that replaced the default installed dataset. Feature Request: Let zsys manage a newly migrated user dataset that replaced the default installed dataset Mar 25, 2021
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

2 participants