diff options
author | dancer <dancer> | 2003-01-09 11:18:49 +0000 |
---|---|---|
committer | dancer <dancer> | 2003-01-09 11:18:49 +0000 |
commit | e5ce30f5f77c12ca2d8db6e3d7a86e95daa2989e (patch) | |
tree | f6321d2f52df1f43577d4a00eb79dae475daf77b /pbuilder-user-mode-linux | |
parent | cd156a6e295d5649aaafc8eba9a723255dc925bf (diff) | |
download | pbuilder-e5ce30f5f77c12ca2d8db6e3d7a86e95daa2989e.tar pbuilder-e5ce30f5f77c12ca2d8db6e3d7a86e95daa2989e.tar.gz |
+2003-01-09 Junichi Uekawa <dancer@debian.org>
+
+ * pbuilder-user-mode-linux: use /var/cache/pbuilder/pbuilder-mnt
+ instead of /mnt, which may be used for other tasks.
+ PBUILDER_COWFILENAME is buildplace/$$.cow.
+
+ * Makefile (install): install /var/cache/pbuilder/pbuilder-mnt dir.
+
+ * pbuilder-user-mode-linux (UML_EXTRAOPT): --buildresult ignore.
+
+ * pbuilder-user-mode-linux.1: document --uml-hostname
+
+ * pbuilder-user-mode-linux: set hostname inside UML.
+ (UML_EXTRAOPT): --uml-hostname option.
+
+ * pbuilder-uml.conf.5: document
+
+ * pbuilder-uml.conf (UML_HOSTNAME): add variable for hostname
Diffstat (limited to 'pbuilder-user-mode-linux')
-rwxr-xr-x | pbuilder-user-mode-linux | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux index 8a7a95c..e61cd62 100755 --- a/pbuilder-user-mode-linux +++ b/pbuilder-user-mode-linux @@ -35,7 +35,7 @@ for CONFIGFILE in /usr/share/pbuilder/pbuilder-uml.conf /etc/pbuilder/pbuilder-u done function usecow () { - PBUILDER_COWFILENAME=$(tempfile -d "${BUILDPLACE}" --suffix .cow) + PBUILDER_COWFILENAME="${BUILDPLACE}/$$.cow" PBUILDER_COW="${PBUILDER_COWFILENAME}," rm -f "${PBUILDER_COWFILENAME}" } @@ -50,7 +50,7 @@ function operate_uml () { # use this script file to bootstrap the pbuilder inside the UML INSIDE_PBUILDER=$(tempfile) trap cleanup_function exit - UML_CHROOT_MOUNTPOINT=/mnt/ + UML_CHROOT_MOUNTPOINT=/var/cache/pbuilder/pbuilder-mnt #The following script is ran inside UML as soon as it is started. @@ -61,6 +61,7 @@ mount -t tmpfs /tmp /tmp mount -t ext2 /dev/ubd/1 ${UML_CHROOT_MOUNTPOINT} export LOGNAME="${LOGNAME}" export HOME="${HOME}" +hostname "${UML_HOSTNAME}" if [ "${UML_MOUNT_TMPFS}" = "yes" ]; then mount -t tmpfs ${UML_CHROOT_MOUNTPOINT}/tmp ${UML_CHROOT_MOUNTPOINT}/tmp else @@ -102,6 +103,7 @@ if [ -n "${UML_DISTRIBUTION}" ]; then EXTRAOPT="--distribution ${UML_DISTRIBUTION}" fi pbuilder "$1" ${UML_EXTRAOPT} \${EXTRAOPT} --buildresult "" --buildplace ${UML_CHROOT_MOUNTPOINT} --internal-build-uml ${BUILDING_DSC_FILE} +echo "Umounting ${UML_CHROOT_MOUNTPOINT}" umount ${UML_CHROOT_MOUNTPOINT} EOF @@ -154,6 +156,10 @@ while [ -n "$1" ] ; do UML_MEM="$2"; shift; shift; ;; + --uml-hostname) + UML_HOSTNAME="$2"; + shift; shift; + ;; --distribution) UML_DISTRIBUTION="$2"; shift; shift; @@ -166,6 +172,9 @@ while [ -n "$1" ] ; do --timeout|--http-proxy|--configfile|--hookdir|--aptconfdir) UML_EXTRAOPT="${UML_EXTRAOPT} $1 $2" shift; shift;; + --buildresult) + # ignore buildresult + shift;shift;; --logfile) exec > $(readlink -f "$2"); exec 2>&1 |