thanks for all the work you put in to this application.
i've done this on most all of my systems and it was a bit tedious and fiddley.
with just a few tweeks it ran through with no errors on my hc4 with bookworm.
one question, why remove bash-completion and command-not-found packages?