Multistrap's include mechanism is hairy enough that users may need some

support to debug their configs.
main
Yann Dirson 13 years ago committed by josch
parent ab9d347510
commit 80e97de0dc

@ -26,7 +26,7 @@
set -e set -e
usage() { usage() {
echo "Usage: $0: [-s suite] [-a arch] [-d directory] [-m mirror] [-p packages] platform\n" >&2 echo "Usage: $0: [-n] [-s suite] [-a arch] [-d directory] [-m mirror] [-p packages] platform\n" >&2
} }
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C
@ -38,13 +38,15 @@ if [ "$FAKEROOTKEY" = "" ]; then
exit exit
fi fi
while getopts s:a:d:m:p: opt; do MSTRAP_SIM=
while getopts s:a:d:m:p:n opt; do
case $opt in case $opt in
s) _SUITE="$OPTARG";; s) _SUITE="$OPTARG";;
a) _ARCH="$OPTARG";; a) _ARCH="$OPTARG";;
d) _ROOTDIR="$OPTARG";; d) _ROOTDIR="$OPTARG";;
m) _MIRROR="$OPTARG";; m) _MIRROR="$OPTARG";;
p) _PACKAGES="$OPTARG";; p) _PACKAGES="$OPTARG";;
n) MSTRAP_SIM="--simulate";;
?) usage; exit 1;; ?) usage; exit 1;;
esac esac
done done
@ -103,7 +105,9 @@ done < $PLATFORM/multistrap.conf
# download and extract packages # download and extract packages
echo "I: run multistrap" >&2 echo "I: run multistrap" >&2
multistrap -f "$MULTISTRAPCONF" multistrap $MSTRAP_SIM -f "$MULTISTRAPCONF"
[ -z "$MSTRAP_SIM" ] || exit 0
rm -f "$MULTISTRAPCONF" rm -f "$MULTISTRAPCONF"
# backup ldconfig and ldd # backup ldconfig and ldd

Loading…
Cancel
Save