#!/bin/sh -eu # bootstrap.sh -- a Devuan base image # Copyright (C) 2017 Olaf Meeuwissen # # License: GPL-3.0+ DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND apt-get update apt-get install debootstrap -q -y rootfs=/devuan/rootfs debootstrap \ --force-check-gpg \ --no-merged-usr \ --variant=minbase jessie $rootfs bindir=usr/local/bin cp -a scripts/* $rootfs/$bindir for script in $(ls $rootfs/$bindir); do chroot $rootfs /$bindir/$script done