[Bug 959411] New: Unable to click 'Encrypt Device' when filesystem is btrfs
http://bugzilla.suse.com/show_bug.cgi?id=959411 Bug ID: 959411 Summary: Unable to click 'Encrypt Device' when filesystem is btrfs Classification: openSUSE Product: openSUSE Tumbleweed Version: 2015* Hardware: Other OS: Other Status: NEW Severity: Major Priority: P5 - None Component: Installation Assignee: yast2-maintainers@suse.de Reporter: rbrown@suse.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 659590 --> http://bugzilla.suse.com/attachment.cgi?id=659590&action=edit y2logs After a recent opensuse-factory discussion it came to my attention that it should be possible to install openSUSE on an encrypted btrfs root filesystem In order for this to work, the disk must have a GPT partition table I've just attempted to do this with a recent Tumbleweed snapshot - 20151209 It doesn't work, as YaST keeps the 'Encrypt Device' tickbox greyed out Steps to Reproduce: Ensure HDD contains a GPT partition table Boot to Tumbleweed installation media Go partition proposal Edit the default btrfs / partition Attempt to Click 'Encrypt Device' - Optional - Delete the default btrfs / partition - Optional - Add a new btrfs partition - Optional - Attempt to Click 'Encrypt Device' Expected Results: YaST should allow 'Encrypt Device' to be ticked when the disk is a GPT disk and the Filesystem is set to btrfs Actual Results: 'Encrypt Device' cannot be clicked, either when editing a proposed btrfs partition, or when creating a new btrfs partition. y2logs are attached parted -l output showing the disk started with a gpt partition table Model: ATA SanDisk SD7SB3Q2 (scsi) Disk /dev/sda: 256GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 165MB 164MB fat16 primary boot, esp 2 165MB 13.1GB 12.9GB linux-swap(v1) primary 3 13.1GB 256GB 243GB btrfs primary Screenshot incoming showing the 'Encrypt Device' tickbox not being tickable -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c1
--- Comment #1 from Richard Brown
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c2
Ancor Gonzalez Sosa
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c3
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c4
Richard Brown
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c5
Matthias Eckermann
Based on comversations with MgE and Thorsten I was under the distinct impression that thia feature was already implemented in openSUSE
So reopening and NEEDINFOing them in the hope they can clear this up
Gentleman, is there a reason this is missing from openSUSE - its obviously a technology of great importance to SLE, shouldn't the distributions have parity in this area?
There is neither reason nor intent to not have this implemented in openSUSE and be used by the community. Rather I think that we may just have a timing issue in implementing this also in the openSUSE codebase. We should do this ASAP. TIA - MgE -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c6
--- Comment #6 from Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c7
--- Comment #7 from Jiri Srain
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c8
Thorsten Kukuk
Fate #305633 is clear about the setup being *not* supported:
"[...] LVM is necessary for using encrypted root with YaST installer."
That FATE is 7 years old. btrfs didn't even exist at that point in time. A lot happened and today you can use all filesystems directly without LVM for encrypted root filesystems. The btrfs developers even recommend it. YaST2 storage allows it for all filesystems except btrfs, at least for SLES12, which is a bug. btrfs should be supported, too, there is no technical reasons not to do so. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c9
--- Comment #9 from Jiri Srain
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c10
--- Comment #10 from Richard Brown
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c11
Jiri Srain
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c12
--- Comment #12 from Arvin Schnell
Arvin, can you, please, provide some background on this check?
https://github.com/yast/yast-storage/blob/master/src/include/partitioning/ custom_part_lib.rb#L116
Because it is not a supported setup. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c13
Arvin Schnell
The check for btrfs is here:
https://github.com/yast/yast-storage/blob/master/src/include/partitioning/ep... dialogs.rb#L193
Arvin, is there any particular reason why this was failing for btrfs and not for other filesystems?
See bug #908073. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c14
--- Comment #14 from Richard Brown
(In reply to Jiri Srain from comment #11)
Arvin, can you, please, provide some background on this check?
https://github.com/yast/yast-storage/blob/master/src/include/partitioning/ custom_part_lib.rb#L116
Because it is not a supported setup.
I used to think the same as you (that this wasnt supported), but we clearly have Thorsten, MgE and the Documentation telling us otherwise... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c15
--- Comment #15 from Arvin Schnell
(In reply to Arvin Schnell from comment #6)
Fate #305633 is clear about the setup being *not* supported:
"[...] LVM is necessary for using encrypted root with YaST installer."
That FATE is 7 years old. btrfs didn't even exist at that point in time.
Product management decides what the YaST team has to implement so the reasoning that a technology is old and thus has to be supported is invalid from the view of the YaST team.
YaST2 storage allows it for all filesystems except btrfs, at least for SLES12, which is a bug. btrfs should be supported, too, there is no technical reasons not to do so.
No, not for the root filesystem (which this "bug report" is about). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c16
Arvin Schnell
Because it is not a supported setup.
I used to think the same as you (that this wasnt supported), but we clearly have Thorsten, MgE and the Documentation telling us otherwise...
Then show us the fate request! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c17
--- Comment #17 from Thorsten Kukuk
(In reply to Jiri Srain from comment #9)
Arvin, is there any particular reason why this was failing for btrfs and not for other filesystems?
See bug #908073.
Beside that that bug is "encrypted home on encrypted LVM", but we speak about "encrypted root fs without LVM", there was never done an analysis in this bug why it does not work and what needs to be done to get it working (if it was done, the outcome was not written there). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c18
--- Comment #18 from Arvin Schnell
(In reply to Arvin Schnell from comment #13)
(In reply to Jiri Srain from comment #9)
Arvin, is there any particular reason why this was failing for btrfs and not for other filesystems?
See bug #908073.
Beside that that bug is "encrypted home on encrypted LVM", but we speak about "encrypted root fs without LVM", there was never done an analysis in this bug why it does not work and what needs to be done to get it working (if it was done, the outcome was not written there).
"The current conclusion is that this is not easily possible with the current architecture of libstorage: This would be considerable work while introducing great risk of regression for other scenarios. So it turns out that yes, there was a good reason to disable this for Btrfs; it doesn't work in the back-end." -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c19
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=959411
http://bugzilla.suse.com/show_bug.cgi?id=959411#c20
Richard Brown
participants (1)
-
bugzilla_noreply@novell.com