mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-31 21:01:07 +00:00
added --personality to mk-sbuild-lvm and bump version number
This commit is contained in:
parent
b2903d5b7e
commit
4b2ee427cc
12
mk-sbuild-lv
12
mk-sbuild-lv
@ -20,7 +20,7 @@
|
|||||||
# detect the chroot architecture:
|
# detect the chroot architecture:
|
||||||
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392992
|
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392992
|
||||||
#
|
#
|
||||||
# Version: 0.11
|
# Version: 0.12
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -87,6 +87,7 @@ function usage()
|
|||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " --arch=ARCH What architecture to select"
|
echo " --arch=ARCH What architecture to select"
|
||||||
echo " --name=NAME Base name for the schroot (arch is appended)"
|
echo " --name=NAME Base name for the schroot (arch is appended)"
|
||||||
|
echo " --personality=PERSONALITY What personality to use"
|
||||||
echo " --debug Turn on script debugging"
|
echo " --debug Turn on script debugging"
|
||||||
echo " --source-template=FILE Use FILE as the sources.list template"
|
echo " --source-template=FILE Use FILE as the sources.list template"
|
||||||
echo " --debootstrap-mirror=URL Use URL as the debootstrap source"
|
echo " --debootstrap-mirror=URL Use URL as the debootstrap source"
|
||||||
@ -97,7 +98,7 @@ function usage()
|
|||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
OPTS=`getopt -o '' --long "help,debug,arch:,name:,source-template:,debootstrap-mirror:" -- "$@"`
|
OPTS=`getopt -o '' --long "help,debug,arch:,name:,source-template:,debootstrap-mirror:,personality:" -- "$@"`
|
||||||
eval set -- "$OPTS"
|
eval set -- "$OPTS"
|
||||||
|
|
||||||
name=""
|
name=""
|
||||||
@ -113,6 +114,10 @@ while :; do
|
|||||||
arch_suffix="-$2"
|
arch_suffix="-$2"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
|
--personality)
|
||||||
|
personality="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
--name)
|
--name)
|
||||||
name="$2"
|
name="$2"
|
||||||
shift 2
|
shift 2
|
||||||
@ -223,6 +228,9 @@ run-setup-scripts=true
|
|||||||
run-exec-scripts=true
|
run-exec-scripts=true
|
||||||
EOM
|
EOM
|
||||||
fi
|
fi
|
||||||
|
if [ ! -z "$personality" ]; then
|
||||||
|
echo "personality=$personality" >> "$TEMP_SCHROOTCONF"
|
||||||
|
fi
|
||||||
cat "$TEMP_SCHROOTCONF" | sed \
|
cat "$TEMP_SCHROOTCONF" | sed \
|
||||||
-e "s|CHROOT_NAME|$CHROOT_NAME|g" \
|
-e "s|CHROOT_NAME|$CHROOT_NAME|g" \
|
||||||
-e "s|CHROOT_PATH|$CHROOT_PATH|g" \
|
-e "s|CHROOT_PATH|$CHROOT_PATH|g" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user