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

Timeshift for Fedora 32 made easy #873

Closed
wants to merge 1 commit into from
Closed

Timeshift for Fedora 32 made easy #873

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 14, 2020

Severity: Major: (Major loss of function.)

Summary: The Blivet code screens out the @ sign from device names causing Fedora to limit btrfs subvolume names. The design of the Ubuntu installer program, ubiquity, has made it normal and expected for btrfs subvolume names to consist of strings starting with a commercial at sign (e.g. @ and @home). OpenSUSE and Manajaro teams have adopted this convention. Notably the timeshift program requires this to support btrfs.

Reproduce steps:

  1. Install Fedora 32 via the Workstation or Server installer from getfedora.org.
  2. Attempt to use blivet to put / on a btrfs subvolume named @

Expected result: You should have / on a btrfs subvolume named @

Actual result: / is on a btrfs subvolume named btrfs.1234 (or other digits).

Severity: Major: (Major loss of function.)

Summary: The Blivet code screens out the @ sign from device names causing Fedora to limit btrfs subvolume names. The design of the Ubuntu installer program, ubiquity, has made it normal and expected for btrfs subvolume names to consist of strings starting with a commercial at sign (e.g. @ and @home).  OpenSUSE and Manajaro teams have adopted this convention.  Notably the timeshift program requires this to support btrfs.  

Reproduce steps:
1. Install Fedora 32 via the Workstation or Server installer from getfedora.org.
2. Attempt to use blivet to put / on a btrfs subvolume named @

Expected result: You should have / on a btrfs subvolume named @

Actual result: / is on a btrfs subvolume named btrfs.1234 (or other digits).
@ghost
Copy link
Author

ghost commented Jul 14, 2020

Two links as background material discussing Timeshift on Fedora
https://mutschler.eu/linux/install-guides/timeshift-recovery/
https://ask.fedoraproject.org/t/timeshift-and-btrfs/5325

Copy link
Member

@vojtechtrefny vojtechtrefny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, I didn't know that btrfs allows @ in the subvolume name/label. Anyway, this will need a bigger change -- the safe_device_name function is used for all device types, not only btrfs and some (like LVM) don't allow special characters in device names. So we'll need to make the substitute pattern device type specific to make this work.

@vojtechtrefny
Copy link
Member

I've created a new PR with different "safe" names for different device types: #878

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

Successfully merging this pull request may close these issues.

None yet

1 participant