Created attachment 216116 [details]
Log output diff
Trying to install Stretch (debootstrap --arch=amd64 --verbose stretch /tmp/stretch http://deb.debian.org/debian) results in what seems to an unfinished installation - for example the apt(1) binary is missing. Attached is a diff from output from the same command ran in Bionic chroot (under 13-CURRENT with Linuxulator), and debootstrap installed from FreeBSD package.
Ok, found the culprit: it doesn't work with sh(1); replacing the shebang in /usr/local/sbin/debootstrap with '#!/usr/local/bin/bash' fixes it.
A commit references this bug:
Date: Sun Jul 19 12:55:01 UTC 2020
New revision: 542573
sysutils/deboostrap: make it use bash, mount fdescfs,
ignore --configure errors
For some reason, when run with stock sh(1) the script aborts just
after 'Unpacking the base system'.
The fdescfs mount fixes 'dpkg --configure' for rsyslog. Note that
there are also some kernel patches required to make it work completely.
The fdescfs is not enough to fix everything, though, so just ignore
'dpkg --configure' errors for Bionic; they don't break anything important.
Reviewed by: 0mp (earlier version)
Approved by: maintainer timeout (2 weeks)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25594