• Bug#1102415: Documentation error in Debian Installer preseed guide

    From Cyril Brulebois@21:1/5 to All on Wed Apr 9 05:40:01 2025
    XPost: linux.debian.maint.boot

    Hi,

    and thanks for the report.

    João Pedro Gonçalves Lenzi <jpglenzi@hotmail.com> (2025-04-08):
    I noticed what looks like an error in the Debian Installer manual for
    preseed files, specifically in the "Partitioning" section at:

    https://www.debian.org/releases/stable/amd64/apbs04.en.html

    The guide uses this line:

    d-i partman-partitioning/confirm_write_new_label boolean true

    But based on testing and community recommendations, it seems the correct line should be:

    d-i partman/confirm_write_new_label boolean true

    Are you sure?

    Looking in all repositories at once, I'm only finding two hits with the
    old names:

    partman-base/debian/changelog
    3249: - templates: make partman/confirm_write_new_label translatable

    kickseed/handlers/clearpart.sh
    68: ks_preseed d-i partman/confirm_write_new_label boolean true

    The former only contains a trace in the changelog, as the relevant
    templates were removed during the reorganization mentioned below. The
    latter isn't really maintained to the best of my knowledge.

    You'll find the new names in the relevant components, which are (mainly) partman-partitioning and (tangentially) netboot-assistant.

    Not sure if this changed recently or if it's just an old leftover, but
    I figured it might be helpful to fix it for others relying on the documentation for automated installs.

    I suppose this depends on your definition of “changed recently”. :)

    That was reorganized in 2007:
    https://salsa.debian.org/installer-team/partman-partitioning/-/commit/28a001e094311652aa551b25d3b94c8dcc3c3c9d

    At the time everything was still in a big svn repository, so you'll see
    both the addition in debian/partman-partitioning.templates (with the new, current names) and the code change in storage_device/label/do_option
    switching from partman/* to partman-partitioning/*.

    This was reflected in the installation guide in 2009:

    installation-guide (20090901) unstable; urgency=low
    […]
    [ Colin Watson ]
    * partman/confirm_write_new_label was renamed to
    partman-partitioning/confirm_write_new_label in r50363, December 2007.
    Adjust preseeding documentation to match.

    See: https://salsa.debian.org/installer-team/installation-guide/-/commit/a9eee7c6f96a0f010d88c173945b210c8c60d958

    You could add DEBCONF_DEBUG=developer on the kernel command line before starting the installer and inspect what variables are getting queried via
    the debconf protocol if you really wanted to make sure (you'll find the
    extra lines in /var/log/syslog in the d-i context, and in /var/log/installer/syslog in the installed system).


    Cheers,
    --
    Cyril Brulebois (kibi@debian.org) <https://debamax.com/>
    D-I release manager -- Release team member -- Freelance Consultant

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmf16RMACgkQ/5FK8MKz VSCDEg//XTyuRr94NVvqt5UKzhhkiiwBsuIzMUVh05EJuxpLnaP0bXwqoJy6YdiZ pAN8YLYZitxSd1DLDxgjcx8tG8Wi+MKeDCul29eEq0OPn52+Xnf43qzbT+10ZHTN tYLw4rW4KoPrC8kKINuHCwLeVfqc/q1f2UJLlmsESEYKqFUThl3idFo/mRL1qI3v LN5xsEdycN0f/C7zJKOjOBGE3LyhPOvboPCvwgQNoKjhxgG/rY0U7uZ5/E+VYrrn codDgcDR1eYHEB1CC9Xaoi5GP6mlp9JUrjxEDdhlUpmmf/MhZgqX8mCXHpxHmY4z 5I7GHyH2cJSMTD8z5ME0cOQKHqL+gLI7IQ6rEjLIcpNaqSC9OTNsXADfLkOE73q9 g3osoDmSjqZNBbvv08n5aUoq2q3XkxMVVbY2RGg59b1rUhfMdGvql3zSgzC3rLkv lIV0ZAAtP0j5WDvnv4XSgv9KQGIUyTHnFG+eWK3NmawPDV4jG8fTVD/s6GNcOCUU 2VCAgmkV5Fdf84AHOLecYA52vpBvkMOU2RLsgW1wKswOmBfJxPJSUZZ/ZknSThrp fVP6hBmznnZeLRAdnfBQWd7jiGLHtpCiBmkBghnt6uCIN5Wf310Asx0dGoQx+QDr sdflob6MB2Lwi6LSzb9JvPaJi8flEj71NmhWum5fcT9jkso0vbM=
    =Gj3u
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    *