Page MenuHomeFreeBSD

bsdinstall: Fix newfs bsddialog menu
ClosedPublic

Authored by emaste on Nov 7 2025, 10:58 PM.
Tags
None
Referenced Files
F164563216: D53639.diff
Sun, Aug 2, 2:55 AM
Unknown Object (File)
Fri, Jul 31, 3:53 AM
Unknown Object (File)
Wed, Jul 29, 12:07 PM
Unknown Object (File)
Tue, Jul 28, 7:18 PM
Unknown Object (File)
Sat, Jul 25, 4:40 PM
Unknown Object (File)
Fri, Jul 24, 8:59 PM
Unknown Object (File)
Fri, Jul 24, 4:43 PM
Unknown Object (File)
Tue, Jul 21, 7:07 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

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

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

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.