Bug 2483145
| Summary: | Anaconda can't detect btrfs subvolume which have @ in the name when using custom partitioning | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | contact | ||||
| Component: | cockpit | Assignee: | Martin Pitt <mpitt> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 44 | CC: | alpha, anaconda-maint, chkboom, contact, jvanderwaa, kkoukiou, mkolman, mmarusak, mpitt, patrick, stefw, theking2, w | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | cockpit-365-1.fc45 | Doc Type: | --- | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2026-07-30 23:41:23 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
contact
2026-05-29 03:44:31 UTC
Created attachment 2143270 [details]
Screenshot of configuration used inside virtual machine.
I was able to reproduce. Thanks for the report. It looks like when using @ as prefix in the names WebUI has an issue parsing the expected layout. Having the btrfs volumes for @root and @home named without the @, resolves the issue (workaround) When btrfs subvolumes use @-prefixed names (e.g. Fedora-style @root, @home) on an encrypted partition, Cockpit does not populate the subvolumes map in sessionStorage.cockpit_mount_points.
Instead it exports a flat filesystem with dir: "/", and the mount point assignments are lost.
Anaconda WebUI relies on cockpit-storage prefilled `cockpit_mount_points` to fill the data for manual partitioning requests. The current session storage object with the layout of this bug report is:
cockpit_mount_points:"{
"/dev/vda1":{"type":"filesystem","dir":"/boot/efi"}
"/dev/mapper/luks-f6e87f02-3219-49e3-ba3f-5508e22f91ec":{"type":"filesystem","dir":"/"},
"/dev/zram0":{"type":"swap"}
"/dev/vda3":{"type":"crypto","cleartext_device":"/dev/mapper/luks-f6e87f02-3219-49e3-ba3f-5508e22f91ec","content":{"type":"filesystem","dir":"/"}},
"/dev/vda2":{"type":"filesystem","dir":"/boot"}
}"
expected object is:
...
"/dev/vda3": {
"type": "crypto",
"cleartext_device": "/dev/mapper/luks-…",
"content": {
"type": "filesystem",
"subvolumes": {
"@root": { "dir": "/" },
"@home": { "dir": "/home" }
}
}
}
Reference: https://github.com/cockpit-project/cockpit/blob/main/pkg/storaged/btrfs/utils.jsx#L57
Cause: parse_subvol_from_options: [\w\\/]+ rejects @ in names
*** Bug 2486047 has been marked as a duplicate of this bug. *** Cockpitparses the subvol mount option incorrectly, this is fixed in https://github.com/cockpit-project/cockpit/pull/23501 *** Bug 2446446 has been marked as a duplicate of this bug. *** FEDORA-2026-c7c121cc99 (cockpit-365-1.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-c7c121cc99 FEDORA-2026-c7c121cc99 (cockpit-365-1.fc45) has been pushed to the Fedora 45 stable repository. If problem still persists, please make note of it in this bug report. |