When bsdinstall-ing a new system I ran into partitioning confusion, so I had to restart the installer several times. This was done by selecting "restart" when the installer offered the "restart" or "exit" prompt. For each restart, I had to re-select the distributions I wanted (the choices were not persisted, which may be relevant here). Once I finally had the partitioning in place, and proceeded to install, all chosen distribution files were installed multiple times - once for each restart (presumably). See screenshot (also linked to in this ticket): https://anduin.net/~ltning/bsdinstall-oops.jpg /Eirik
Thank you for the screenshot, I am quite sure the "guilty" variable (not restarted) is 'DISTRIBUTIONS': https://cgit.freebsd.org/src/tree/usr.sbin/bsdinstall/distextract/distextract.c#n76 Actually, "not persisted restart" is a known problem. Other PRs describe similar situations. I fixed some problem in the past. However, we should implement a real "restart" feature to solve properly the problem.
Created attachment 245717 [details] 0001-bsdinstall-reset-the-environment-when-restarting.patch The patch attached is also in review D42281.
It seems this bug is also available since the alpha testing of FreeBSD 14.0, it is still visible on RC2.
Created attachment 245769 [details] distribution archives extraction FreeBSD 14.0-RC2 distribution archives extraction duplication in FreeBSD 14.0-RC2
(In reply to Guillaume Bibaut from comment #3) That is correct, the patch is still pending review and not merged to main yet; I am working on the necessary improvements before it can get there.
*** Bug 281352 has been marked as a duplicate of this bug. ***