apt-mark reduced to minimum
@@ -158,7 +158,6 @@ fi
[ -n "$noMergedUsr" ] && debootstrapArgs+=( --no-merged-usr ) || debootstrapArgs+=( --merged-usr )
[ -z "$keyring" ] || debootstrapArgs+=( --keyring="$keyring" )
[ -z "$arch" ] || debootstrapArgs+=( --arch="$arch" )
-[ -z "$exclude" ] || debootstrapArgs+=( --exclude="$exclude" )
debootstrapArgs+=(
"$suite" "$targetDir" "$mirror"
@@ -193,6 +192,18 @@ if [ -z "$nonDebian" ]; then
"$thisDir/garden-apt-get" "$targetDir" upgrade -y
fi
+# since we're minbase, we know everything included is either essential, or a dependency of essential, so let's get clean "apt-mark showmanual" output
+"$thisDir/garden-chroot" "$targetDir" bash -c '
+ if apt-mark --help &> /dev/null; then
+ apt-mark auto ".*" > /dev/null
+ if [ -n "$1" ]; then
+ # if the user asked for anything to be included extra (like "xyz-archive-keyring"), mark those packages as manually installed
+ IFS=","; includePackages=( $1 ); unset IFS
+ apt-mark manual "${includePackages[@]}"
+ fi
+ fi
+'
+
set -x
tmp=$(mktemp -d -p $targetDir)
if [ "${include_wget}" != "" ]; then
