+# note: deborphan is no longer available as of Debian/trixie,
+# see https://github.com/grml/grml-live/issues/144
+if [ -x "$target"/usr/bin/deborphan ] ; then
+ # remove packages until deborphan does not find anymore:
+ while [ "$($ROOTCMD deborphan)" != "" ] ; do
+ echo "Executing deborphan"
+ $ROOTCMD apt-get -y --purge remove $($ROOTCMD deborphan)
+ done
+fi
+