docker-devuan_paddy-hack/bootstrap.sh

26 lines
497 B
Bash
Executable File

#!/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=$PWD/rootfs
debootstrap \
--force-check-gpg \
--no-merged-usr \
--variant=minbase jessie $rootfs
bindir=usr/local/bin
install -m 0755 -o root -g root scripts/* $rootfs/$bindir
for script in $(ls $rootfs/$bindir); do
chroot $rootfs /$bindir/$script
done