From feee78f8d2df8cc5f0ae3aaa6128c1a54fb7c5eb Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Mon, 28 Feb 2022 21:25:42 +1100 Subject: [PATCH] added --- bootstrap | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 bootstrap diff --git a/bootstrap b/bootstrap new file mode 100644 index 0000000..3e7d628 --- /dev/null +++ b/bootstrap @@ -0,0 +1,32 @@ +#!/bin/bash +# +# debootstrap a subhost filesystem + +BASE="$(realpath $(dirname $0))" + +NAME=$1 + +: ${SUBHOST=/opt/subhost} +: ${TOP=$SUBHOST/$NAME} +: ${OSROOT=$TOP/base} +: ${TARGET=$TOP/live} +: ${IMAGE=$TOP/$NAME.img} +: ${UPPER=$TOP/root} +: ${WORK=$TOP/work} +: ${MOUNT=$TOP/mnt} +: ${NSNAME=$NAME} +: ${BRIDGES=lan_br} +: ${CONFIG=$TOP/config} + +: ${SUITE=chimaera} +: ${SOURCE=http://deb.devuan.org/merged} + +mkdir -p $TARGET $UPPER $WORK $MOUNT + +PKGS="less,psmisc,ifupdown,net-tools,iproute2,iputils-ping,procps" +PKGS+=",man-db,manpages,manpages-dev,manpages-posix,manpages-posix-dev" + +debootstrap --no-merged-usr --variant=minbase --include="$PKGS" \ + $SUITE $OSROOT $SOURCE + +cp -p $BASE/startup $OSROOT/ -- 2.39.2