• Bug#1109467: partman-auto: Document more partman (non-)options

    From Andrew Sayers@21:1/5 to All on Fri Jul 18 14:20:01 2025
    XPost: linux.debian.maint.boot

    Package: partman-auto
    Severity: wishlist

    I've updated partman's wiki page with information
    I couldn't find in the official documentation:

    https://wiki.debian.org/DebianInstaller/Partman

    `$bios_boot{ }` appears to be an old option, and I can't
    find any evidence `$gptonly{ }` was ever actually implemented.
    If you would rather not mention that sort of thing in
    partman-auto-recipe.txt, could you link to the wiki page instead?
    That should let users find the page, but understand it's less official.


    -- System Information:
    Debian Release: 13.0
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386, armhf

    Kernel: Linux 6.12.33+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
    Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pascal Hambourg@21:1/5 to Andrew Sayers on Sun Jul 20 09:40:01 2025
    XPost: linux.debian.maint.boot

    On 18/07/2025 at 13:14, Andrew Sayers wrote:

    I've updated partman's wiki page with information
    I couldn't find in the official documentation:

    https://wiki.debian.org/DebianInstaller/Partman

    `$bios_boot{ }` appears to be an old option, and I can't
    find any evidence `$gptonly{ }` was ever actually implemented.

    I am quite new to partman-auto but have never seen any of these.
    Do you have any evidence that '$bios_boot{ }' was ever implemented ?

    'method{ biosgrub }' is just a regular specifier (creates an arbitrary
    file in the partition directory) among many others, why specifically
    mention it ?

    If you would rather not mention that sort of thing in partman-auto-recipe.txt, could you link to the wiki page instead?
    That should let users find the page, but understand it's less official.

    I opened a merge request against debian-installer to update partman-auto-recipe.txt with missing descriptions and some clarifications: <https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/66>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew Sayers@21:1/5 to Pascal Hambourg on Sun Jul 20 12:20:01 2025
    XPost: linux.debian.maint.boot

    On Sun, Jul 20, 2025 at 09:29:43AM +0200, Pascal Hambourg wrote:
    On 18/07/2025 at 13:14, Andrew Sayers wrote:

    I've updated partman's wiki page with information
    I couldn't find in the official documentation:

    https://wiki.debian.org/DebianInstaller/Partman

    `$bios_boot{ }` appears to be an old option, and I can't
    find any evidence `$gptonly{ }` was ever actually implemented.

    I am quite new to partman-auto but have never seen any of these.
    Do you have any evidence that '$bios_boot{ }' was ever implemented ?

    I haven't found any reference to it in the source code,
    but bug #491376 comment #47 says:

    The correct approach here, I think, is to use a partman method instead.
    That ensures that a partition can contain a filesystem or a BIOS boot
    area, but not both. This also makes preseeding a lot easier - we don't
    need a special-cased $bios_boot{ } internal specifier any more, but can
    just set the method in the natural way.

    ... so it seems to have existed back in 2009. More importantly, I've found both `$bios_boot{ }` and `$gptonly{ }` recommended around the Internet,
    but never found a definitive statement about what they're supposedly about.

    I wouldn't mind these being added to the official documentation, but I went to the wiki first because that seems like the more obvious place for documentation that's basically just debunking urban legends.

    'method{ biosgrub }' is just a regular specifier (creates an arbitrary file in the partition directory) among many others, why specifically mention it ?

    `partman-auto-recipe.txt` mentions the following:

    method{ format } - described in that file
    method{ swap } - described in passing
    method{ keep } - described in passing
    method{ lvm } - seems to make sense in context
    method{ newworld } - seems to make sense in context
    method{ efi } - seems to make sense in context

    `method{ biosgrub }` is worth knowing about, but not mentioned there.
    If there are others missing, they should be documented too :)

    If you would rather not mention that sort of thing in partman-auto-recipe.txt, could you link to the wiki page instead?
    That should let users find the page, but understand it's less official.

    I opened a merge request against debian-installer to update partman-auto-recipe.txt with missing descriptions and some clarifications: <https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/66>

    That looks much better! I'll register for a Salsa account and try to participate in the actual MR discussion, but here are some specific nitpicks:

    Stripped if an existing partition is reused.

    I think this means the setting will be ignored, not that the partition
    will be zeroed. If so, maybe s/stripped/ignored/?

    in order to preserve its contents.

    Consider adding: multiple space-separated options supported since partman-auto 170

    [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491376#47

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)