Commit 91273a8f authored by dancer's avatar dancer

+ * Makefile (clean): remove testsuite/testimage, it's 1G.

+	(full-check): add new target to run the test program.
+
+	* pbuilder-user-mode-linux (UML_EXITCODE): check for rootstrap.conf in the
+	current directory.
+
+	* testsuite/run-test.sh (PBUILDER_UML): a test script to run pbuilder-uml and see if it's working.
+
+	* testsuite/rootstrap.conf (interface): testsuite config
+
parent 63661df3
2003-09-19 Junichi Uekawa <dancer@debian.org>
* Makefile (clean): remove testsuite/testimage, it's 1G.
(full-check): add new target to run the test program.
* pbuilder-user-mode-linux (UML_EXITCODE): check for rootstrap.conf in the
current directory.
* testsuite/run-test.sh (PBUILDER_UML): a test script to run pbuilder-uml and see if it's working.
* testsuite/rootstrap.conf (interface): testsuite config
2003-09-05 Junichi Uekawa <dancer@debian.org>
* pbuilder-uml.conf.5: document slirp here also.
......
......@@ -23,8 +23,14 @@ check:
echo $$A; \
done
full-check:
set -e; \
cd testsuite; \
./run-test.sh
clean:
rm -f *.bak *~ TAGS
rm testsuite/testimage
TAGS:
etags pbuilder-* pbuilder
......
pbuilder (0.87) UNRELEASED; urgency=low
* Test
-- Junichi Uekawa <dancer@debian.org> Fri, 19 Sep 2003 06:07:39 +0900
pbuilder (0.86) unstable; urgency=low
* check if /etc/hosts etc. exist before trying to readlink and cp.
......
......@@ -258,12 +258,15 @@ case "${OPERATION}" in
operate_uml execute
;;
create)
if [ ! -d ~/.pbuilder-user-mode-linux ]; then
mkdir ~/.pbuilder-user-mode-linux
fi
cd ~/.pbuilder-user-mode-linux
if [ -n "${UML_DISTRIBUTION}" ]; then
sed "s/dist=.*/dist=${UML_DISTRIBUTION}/" /etc/rootstrap/rootstrap.conf > rootstrap.conf
if [ ! -d ~/.pbuilder-user-mode-linux ]; then
mkdir ~/.pbuilder-user-mode-linux
fi
sed "s/dist=.*/dist=${UML_DISTRIBUTION}/" /etc/rootstrap/rootstrap.conf > ~/.pbuilder-user-mode-linux/rootstrap.conf
if [ -f rootstrap.conf ]; then
sed "s/dist=.*/dist=${UML_DISTRIBUTION}/" rootstrap.conf > ~/.pbuilder-user-mode-linux/rootstrap.conf
fi
cd ~/.pbuilder-user-mode-linux
fi
rootstrap -s 1000 ${PBUILDER_UML_IMAGE}
operate_uml update
......
This diff is collapsed.
#
# Global settings, these are passed on to all modules
#
[global]
fstype=ext2
# How large to create the initial image (MB). Be generous, as image
# creation will fail if it is too small, and it will be created as a
# sparse file, making it relatively inexpensive
initialsize=1024
# Will be resized to leave this much free space when building is
# complete. Leave unset or set to 0 to disable resizing.
freespace=0
# Which modules to invoke. Each module can have its own section
# below, with module-specific settings
modules=network mkfs mount debian uml umount
# Global environment variables
PATH=/bin:/sbin:/usr/bin:/usr/sbin
# Use of a caching proxy is highly recommended where a local mirror is
# not available, so that packages are not fetched many times
# unnecessarily. I use squid.
#http_proxy=http://192.168.10.1:3128
#
# Networking
#
# required unless you have a local copy of all packages to be installed
# these settings are only used during installation
[network]
interface=eth0
transport=slirp
host=
uml=10.0.2.15
nameserver=10.0.2.3
gateway=10.0.2.2
netmask=255.255.0.0
slirp=slirp-fullbolt
#
# Debian module
#
[debian]
dist=sid
# A local mirror is best, a caching proxy (such as squid) is almost as
# good
mirror=http://ftp.jp.debian.org/debian
# Packages which should not be installed in the first place (be sure
# you know what you're doing)
exclude=pcmcia-cs setserial dhcp-client
# Packages which should be purged after the initial install
purge=base-config console-common console-tools console-data console-tools-libs
# Extra packages to install via debootstrap
#include=myfavoritepackage someotherpackage
# Extra packages to install via apt after initial debootstrap install
#install=myfavoritepackage someotherpackage
[uml]
install_modules=yes
#!/bin/sh
# This is a testsuite.
PBUILDER_UML=/usr/bin/pbuilder-user-mode-linux
if [ -x "${PBUILDER_UML}" ]; then
pbuilder-user-mode-linux create --distribution sid --uml-image $(pwd)/testimage --logfile pbuilder-user-mode-linux-create.log
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment