opnsense-src/tools
Jose Luis Duran e58d9b71f3
nanobsd: Always define the partition index
Print the desired partition index together with the starting LBA and the
size. Otherwise, when only one code partition is desired, the
configuration partition (/cfg) may not end up in the third slice, thus
breaking the scripts that expect it there.

This was the previous approach, changed in 587c054bea ("nanobsd: Use
gpart and create code image before full disk image").

Fix it by printing the index as the last column to reduce the chances of
breaking current overrides, and using it as the gpart index.

PR:		262098
Reviewed by:	imp
Approved by:	emaste (mentor)
Fixes:	587c054bea ("nanobsd: Use gpart and create code image before full disk image")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D47835

(cherry picked from commit dc4b36b96333f2ab05f3c454f0df2e0a0d4d451d)
2025-02-12 01:32:12 +00:00
..
boot Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
bsdbox Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
build MAC: mac.h: Separately test inclusion from userspace 2025-01-16 19:06:54 +01:00
bus_space Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
coccinelle copystr(9): Move to deprecate (attempt #2) 2020-05-25 16:40:48 +00:00
debugscripts Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
diag Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
ifnet Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
kerneldoc Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
LibraryReport Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua Remove $FreeBSD$: one-line lua tag 2023-08-16 11:55:34 -06:00
pkgbase Remove $FreeBSD$: one-line lua tag 2023-08-16 11:55:34 -06:00
regression Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-08-06 15:39:53 -04:00
sched Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
test stress2: Fix a typo in namecache2.sh 2024-08-12 14:52:27 +02:00
tools nanobsd: Always define the partition index 2025-02-12 01:32:12 +00:00
uma/smrstress Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
install.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
make_libdeps.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
README Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
tinder.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00

This directory tree contains tools used for the maintenance and
testing of FreeBSD.  There is no toplevel Makefile structure since
these tools are not meant to be built as part of the standard system,
though there may be individual Makefiles in some of the subdirs.

Please read the README files in the subdirs for further information.