source: make-mini-image/config/10-build @ 2905

Last change on this file since 2905 was 1827, checked in by mabarracus, 4 years ago

Final config & renamed scripts

  • Property svn:executable set to *
File size: 642 bytes
Line 
1#!/bin/bash
2
3source CONFIG
4source functions
5
6ensure BASE ARCH NAME IN_RAM
7
8if [ "${IN_RAM}" = "1" ]; then
9    mkdir -p ./${BASE}
10    mount -t tmpfs none ./${BASE} -o size=2G,exec,suid,dev
11fi
12
13OPTS=""
14
15if exists MIRROR; then
16    OPTS+=" --mirror ${MIRROR} "
17#    OPTS+=" --early-mirror ${MIRROR} "
18fi
19if exists EXTRA_MIRROR; then
20    OPTS+=" --extra-mirror ${EXTRA_MIRROR} "
21fi
22
23
24echo "Bootstrapping ..."
25
26if [ "x${VERBOSE}" = "x0" ]; then
27    exec &> /dev/null
28fi
29
30ltsp-build-client --arch ${ARCH} --accept-unsigned-packages --chroot ${NAME} --base ./${BASE} --locale es --skipimage ${OPTS}
31
32if [ "$?" != "0" ]; then
33    exitting
34fi
35
36
37exit 0
Note: See TracBrowser for help on using the repository browser.