Bugzilla – Bug 1155674
Expert Partitioner: internal error, if encrypted btrfs partition shall be created
Last modified: 2020-01-07 15:31:20 UTC
Created attachment 823065 [details] Result of save_y2logs The Installer of the GNOME Live CD (Snapshot 20191030) produces an error during the creation of an encrypted btrfs subvolume, if the expert partitioner is used. My goal is to reuse the existing EFI partitioning of the Windows 10 install to dual boot - the guided partitioning scheme intends to create a new EFI partition. (not a deal breaker, but IMHO it should be possible to create an encrypted btrfs partition using the export route) Reproducible: always Steps to reproduce: 1. Boot GNOME Live CD (Snapshot 20191030) 2. Start Installation 3. During Partitioning choose "Expert" 4. Create a new partition 5. Choose format as btrfs, mount point /, enable subvolume creation 6. Choose to encrypt the partition 7. Click Next 8. Installer produces the following error message: Caller: /usr/share/YaST2/lib/y2partitioner/widgets/encrypt.rb:92:in `format' Details: key{Header} not found Expected result: Installer allows creation of custom partition with encrypted btrfs partition. Interestingly *not* choosing the expert partitioning and choosing to install with encryption works, if selected in the guided setup. (put does not produce the wanted custom partitioning scheme) I have attached a log produced by save_y2logs. I couldn't find an existing bug report and hope, that the information is useful.
Thanks for the report Maik! I'm happy to say that, fortunately, there is "nothing" wrong with the expert partitioner. Actually, the problem is in the German translations, and it is quite easy to fix. The technical/long explanation: to build and show the help for the Encrypt[1] widget, we are using named parameters[2] (e.g., %{header}), which must be not changed by translators. But, likely by mistake, they were translated[see the screenshot]... and that's why Ruby is complaining. [1] https://github.com/yast/yast-storage-ng/blob/bb65229236ab87a0fc01aa49ebd169468fc1ccb7/src/lib/y2partitioner/widgets/encrypt.rb [2] https://yastgithubio.readthedocs.io/en/latest/localization/#using-named-parameters
Created attachment 823284 [details] The wrong (de) translation for the Encrypt widget's help
I fix the translation through the Weblate[1], but I am not sure if it is enough. So, reassigning the report. Thanks!
^^^ [1] https://l10n.opensuse.org/translate/yast-storage/master/de/?checksum=7d1029f23acd68bc
The fixed translation was merged into the yast-trans repository on November 4th[1] and accepted into Factory on December 9th[2]. So this should be already fixed in Tumbleweed. [1] https://github.com/yast/yast-translations/commit/d05f35e25d2231110bf6e231ba68343d14516e48#diff-ba132e4893e5d16273a165c8de165665 [2] https://build.opensuse.org/request/show/755106