From e6db002716c0c46fd73ebc258ada23edbf5c7d12 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Sat, 10 Dec 2022 11:32:48 -0600 Subject: Initial proof of concept. Currently, if you run this on a Linux box as an unprivileged user: $ ./bootstrap armv7 /some/scratch/directory you will end up with, completely from source: rootfs-armv7l-adelie-linux-musleabihf-preimage.tgz which is an armv7-native rootfs with all the tools that you need to build our distribution. (Substitute your favorite target). Work that remains to be done involves fixing "bootstrap.sh" in the packages.git repository, then plumbing that back into this project so that the complete process can be automated. --- setup-preimage | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 setup-preimage (limited to 'setup-preimage') diff --git a/setup-preimage b/setup-preimage new file mode 100755 index 0000000..7892a0d --- /dev/null +++ b/setup-preimage @@ -0,0 +1,35 @@ +#!/bin/sh -e + +set -x; + +# these will require proper mounting when actually used +mkdir -p dev proc sys tmp; + +# overwrite leftovers from mcmtools bootstrap +cat > root/.bashrc < root/.gitconfig < root/.curlrc < etc/group < etc/passwd <