#!/bin/sh -ef # Remove all packages except for the base # # Disable word-splittng warnings as they're safe here. # shellcheck disable=SC2046 set -- while read -r pkg _; do case $pkg in baselayout|binutils|bison|busybox|bzip2|curl|flex|gcc|rsync|\ gzip|kiss|libressl|linux-headers|m4|make|musl|pkgconf|xz|zlib) ;; *) set -- "$@" "$pkg" ;; esac done <