The branch main has been updated by jlduran:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d0362607b23043717baadfa33a308b0b4ae77d7c

commit d0362607b23043717baadfa33a308b0b4ae77d7c
Author:     Jose Luis Duran <jldu...@freebsd.org>
AuthorDate: 2025-09-13 03:55:00 +0000
Commit:     Jose Luis Duran <jldu...@freebsd.org>
CommitDate: 2025-09-13 03:55:00 +0000

    nanobsd: Fix the p flag
    
    Fix the "p" flag in the manual page.
    While here, add the flag to the usage instructions.
    
    Reviewed by:    imp
    Approved by:    emaste (mentor)
    Fixes:  90593b1bdb80 ("nanobsd: Expose do_image_prep on command line")
    Differential Revision:  https://reviews.freebsd.org/D52508
---
 share/man/man8/nanobsd.8        | 2 +-
 tools/tools/nanobsd/defaults.sh | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/share/man/man8/nanobsd.8 b/share/man/man8/nanobsd.8
index 8a1f44af6900..44def2503b84 100644
--- a/share/man/man8/nanobsd.8
+++ b/share/man/man8/nanobsd.8
@@ -77,7 +77,7 @@ This suppresses the normal cleanup work done before the
 .Cm buildworld
 stage and adds -DNO_CLEAN to the make command line
 used for each build stage (world and kernel).
-.It Fl r
+.It Fl p
 Don't prepare the image.
 Skip running of the customization and early customization scripts for
 incremental image refinement from world, kernel, or packages.
diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh
index 59ae8d92f4af..4c4323c4bd87 100755
--- a/tools/tools/nanobsd/defaults.sh
+++ b/tools/tools/nanobsd/defaults.sh
@@ -886,7 +886,7 @@ pprint ( ) (
 
 usage ( ) {
        (
-       echo "Usage: $0 [-BbfhIiKknqvWwX] [-c config_file]"
+       echo "Usage: $0 [-BbfhIiKknpqvWwX] [-c config_file]"
        echo "  -B      suppress installs (both kernel and world)"
        echo "  -b      suppress builds (both kernel and world)"
        echo "  -c      specify config file"
@@ -897,6 +897,7 @@ usage ( ) {
        echo "  -K      suppress installkernel"
        echo "  -k      suppress buildkernel"
        echo "  -n      add -DNO_CLEAN to buildworld, buildkernel, etc"
+       echo "  -p      suppress preparing the image"
        echo "  -q      make output more quiet"
        echo "  -v      make output more verbose"
        echo "  -W      suppress installworld"

Reply via email to