aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-user-mode-linux
diff options
context:
space:
mode:
authordancer <dancer>2003-12-15 23:23:29 +0000
committerdancer <dancer>2003-12-15 23:23:29 +0000
commit091894173cb71295ebd3464d8ade56974266f57b (patch)
tree9f8ab479211f8d2f781df6eb53d5e38f101328e3 /pbuilder-user-mode-linux
parent3fdded3fc5eb40db58398662f60969aa7d450ee2 (diff)
downloadpbuilder-091894173cb71295ebd3464d8ade56974266f57b.tar
pbuilder-091894173cb71295ebd3464d8ade56974266f57b.tar.gz
pbuilder execute with command-line options support.
Documentation, and mass-install script.
Diffstat (limited to 'pbuilder-user-mode-linux')
-rwxr-xr-xpbuilder-user-mode-linux7
1 files changed, 5 insertions, 2 deletions
diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux
index 253fd09..60cf87d 100755
--- a/pbuilder-user-mode-linux
+++ b/pbuilder-user-mode-linux
@@ -111,7 +111,7 @@ chroot ${UML_CHROOT_MOUNTPOINT} /tmp/chrootshell
#some variables need to be set from outside values, possibly
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
export TMPDIR=/tmp
-unset EXTRAOPT
+unset EXTRAOPT || true
declare -a EXTRAOPT
if [ -n "${UML_DISTRIBUTION}" ]; then
EXTRAOPT[0]="--distribution"
@@ -125,7 +125,7 @@ else
mkdir -p ${UML_CHROOT_BUILDRESULTMOUNTDIR} || true
mount -t hostfs none "${UML_CHROOT_BUILDRESULTMOUNTDIR}" -o "${UML_BUILDRESULT}"
fi
-pbuilder "$1" ${UML_EXTRAOPT} \${EXTRAOPT[@]} --buildresult "\${BUILDRESULT}" --buildplace "${UML_CHROOT_MOUNTPOINT}" --internal-build-uml ${BUILDING_DSC_FILE}
+pbuilder "$1" ${UML_EXTRAOPT} \${EXTRAOPT[@]} --buildresult "\${BUILDRESULT}" --buildplace "${UML_CHROOT_MOUNTPOINT}" --internal-build-uml ${BUILDING_DSC_FILE} ${UML_EXECUTE_EXTRAOPT}
echo \$? > /proc/exitcode
EOF
@@ -149,6 +149,7 @@ PBUILDER_COW=""
OPERATION="$1"
UML_EXTRAOPT=
UML_DEBUGMODE=
+UML_EXECUTE_EXTRAOPT=
shift;
while [ -n "$1" ] ; do
@@ -273,6 +274,8 @@ case "${OPERATION}" in
execute)
usecow
EXTRACLEANUP=cleancow
+ shift;
+ UML_EXECUTE_EXTRAOPT="${UML_EXECUTE_EXTRAOPT} $@"
operate_uml execute
;;
create)