[Bug 262098] [nanobsd] builds with s2 for /cfg, and can't boot?

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 22 Nov 2024 06:38:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262098

Jose Luis Duran <jlduran@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jlduran@FreeBSD.org

--- Comment #2 from Jose Luis Duran <jlduran@FreeBSD.org> ---
Created attachment 255380
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=255380&action=edit
nanobsd: Always account for 2 code partitions

I was able to replicate this bug.

The attached patch (not the final patch, just the shortest fix) should fix the
issue. What throws me off is that I was not able to find a difference between
12.2 and 12.3. So there might be something else.

The patch always reserves the partition for code#2, it is not populated if
NANO_IMAGES=1 or NANO_INIT_IMG2=0.

Thanks for reporting it, if it is still within your possibilities I would
appreciate it if you could test it.

-- 
You are receiving this mail because:
You are the assignee for the bug.