summaryrefslogtreecommitdiff
path: root/scripts/01-bootstrap.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:20 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:20 +0200
commiteeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5 (patch)
tree18151396add367542887fe7f017025538e3318d6 /scripts/01-bootstrap.sh
downloadlive-build-eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5.zip
live-build-eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5.tar.gz
Adding live-package 0.99-1.
Diffstat (limited to 'scripts/01-bootstrap.sh')
-rw-r--r--scripts/01-bootstrap.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/scripts/01-bootstrap.sh b/scripts/01-bootstrap.sh
new file mode 100644
index 0000000..934737c
--- /dev/null
+++ b/scripts/01-bootstrap.sh
@@ -0,0 +1,43 @@
+# scripts/01-bootstrap.sh
+
+Bootstrap ()
+{
+ if [ -z "${LIVE_ROOTFS}" ]
+ then
+ # Create chroot directory
+ mkdir -p "${LIVE_CHROOT}"
+
+ if [ -z "${LIVE_VERBOSE}" ]
+ then
+ if [ -x /usr/bin/cdebootstrap ]
+ then
+ # Bootstrap with cdebootstrap
+ cdebootstrap --arch="${LIVE_ARCHITECTURE}" \
+ --flavour="${LIVE_FLAVOUR}" \
+ "${LIVE_DISTRIBUTION}" \
+ "${LIVE_CHROOT}" "${LIVE_MIRROR}"
+ elif [ -x /usr/sbin/debootstrap ]
+ then
+ # Bootstrap with debootstrap
+ debootstrap --arch="${LIVE_ARCHITECTURE}" \
+ "${LIVE_DISTRIBUTION}" \
+ "${LIVE_CHROOT}" "${LIVE_MIRROR}"
+ fi
+ else
+ if [ -x /usr/bin/cdebootstrap ]
+ then
+ # Bootstrap with cdebootstrap (debug)
+ cdebootstrap --arch="${LIVE_ARCHITECTURE}" \
+ --debug --flavour="${LIVE_FLAVOUR}" \
+ "${LIVE_DISTRIBUTION}" \
+ "${LIVE_CHROOT}" "${LIVE_MIRROR}"
+ elif [ -x /usr/sbin/debootstrap ]
+ then
+ # Bootstrap with debootstrap (debug)
+ debootstrap --arch="${LIVE_ARCHITECTURE}" \
+ --verbose "${LIVE_DISTRIBUTION}" \
+ "${LIVE_CHROOT}" "${LIVE_MIRROR}"
+ fi
+ fi
+ fi
+}