morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus.git
Log | Files | Refs | Submodules | README | LICENSE

commit 5080bfd8b56a49e059cd8b31eddf7f75c7f2c97e
parent 990c1d40cffd0a224e0185bef3f4f9748fb57d32
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun Jul  6 18:37:44 +0000

misc: add install-debian

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
misc/install-debian | 32++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+), 0 deletions(-)
diff --git a/misc/install-debian b/misc/install-debian @@ -0,0 +1,32 @@ +#!/bin/sh + +set -x -e + +arch="amd64" +release="wheezy" +installdir="/ns/debian-$release" +tmpdir="/tmp/debian" +mirror="http://ftp.nl.debian.org" + +mkdir -p "$tmpdir" +cd "$tmpdir" + +dir="debootstrap-1.0.60~bpo70+1" +debootstrap="debootstrap_1.0.60~bpo70+1.tar.gz" +if ! test -f "$debootstrap"; then + wget "${mirror}/debian/pool/main/d/debootstrap/${debootstrap}" +fi +if ! test -f "$dir"; then + tar -xzf "${debootstrap}" +fi + +cd "$dir" + +# create missing devices.tar.gz +mkdir -p empty +cd empty +tar -czf ../devices.tar.gz . +cd ../ + +export DEBOOTSTRAP_DIR="$(pwd)" +./debootstrap --arch "$arch" --no-check-gpg "$release" "$installdir" "$mirror/debian/"