Page MenuHomeFreeBSD

bsdinstall: Fix newfs bsddialog menu
ClosedPublic

Authored by emaste on Nov 7 2025, 10:58 PM.
Tags
None
Referenced Files
F160628668: D53639.id.diff
Fri, Jun 26, 8:15 AM
Unknown Object (File)
Thu, Jun 25, 7:02 AM
Unknown Object (File)
Tue, Jun 23, 12:50 PM
Unknown Object (File)
Mon, Jun 22, 4:41 AM
Unknown Object (File)
Sat, Jun 20, 4:03 AM
Unknown Object (File)
Sat, Jun 13, 8:46 PM
Unknown Object (File)
Thu, Jun 4, 6:22 PM
Unknown Object (File)
May 15 2026, 10:27 AM
Subscribers

Details

Summary
The first 3 members of struct bsddialog_menuitem are:

                   const char *prefix;
                   bool on;
                   unsigned int depth;

The newfs dialog options in bsdinstall's partition tool had on and depth
swapped, so the defaults did not work.

PR: 290857
Fixes: 50e244964e9b ("bsdinstall/partedit: Replace libdialog with libbsddialog")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste added inline comments.
usr.sbin/bsdinstall/partedit/gpart_ops.c
213

Separately this should probably just be -F 32 without -c 1. I will look at that and post a patch after testing.

Thank you for finding this issue and the fix.

This revision is now accepted and ready to land.Nov 7 2025, 11:09 PM
This revision was automatically updated to reflect the committed changes.