Skip to content

Instantly share code, notes, and snippets.

@bbonev
Created September 6, 2021 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbonev/a2737cdb96329edf3e444857920cb327 to your computer and use it in GitHub Desktop.
Save bbonev/a2737cdb96329edf3e444857920cb327 to your computer and use it in GitHub Desktop.
# Install a minimal start
debootstrap --no-merged-usr --arch=amd64 \
--include=sysvinit-core --variant=minbase \
--exclude=systemd,systemd-sysv,libnss-systemd $RELEASE /mnt
# Flesh out everything that would be in a normal debootstrap
# XXX NOTE: Do this in a chroot
apt-cache dumpavail \
| perl -00 -ne '/^Package: (.*)/m && print "$1\n"
if /^Priority: (?:required|important|standard)/m' \
| grep -v systemd | xargs apt --yes install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment