[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFC MR: Update btrfs mount options



On 16/05/2025 at 23:52, Nicholas D Steeves wrote:

   3. Should we hide dangerous options like "nobarrier" by making them
   exclusive to expert mode? How?

AFAIK partman does not currently supports this. What about a
"(DANGEROUS!)" comment in the option description ?

That's a good idea.  I used up all my free time working on other items
so didn't find an example syntax.  Would it be

option ("Human description")
option "(Human Description)"

I did not understand what you meant until I saw your new commits in the MR. As you may already have observed, adding descriptions in mountoptions/btrfs does not work. The current logic in partman-basicfilesystems/select_mountoptions considers each "word" in mountoptions/* files as a separate option, so you cannot add descriptions here.

Mount option descriptions should be added as partman-basicfilesystems/text/<option> debconf templates, so that they can be translated. FWIW, `noatime` and `nodiratime` already have description templates.


Reply to: