diff options
author | dancer <dancer> | 2002-09-17 08:46:42 +0000 |
---|---|---|
committer | dancer <dancer> | 2002-09-17 08:46:42 +0000 |
commit | b44bd7fcc83391374981e36101454affd0f7a85e (patch) | |
tree | b625935eee8a08d8822ad00719453fbba6131af3 /pbuilder-user-mode-linux | |
parent | 5cd6f5d27aee72341d31d7ee129d3dd9b1a6034a (diff) | |
download | pbuilder-b44bd7fcc83391374981e36101454affd0f7a85e.tar pbuilder-b44bd7fcc83391374981e36101454affd0f7a85e.tar.gz |
+ * pbuilder-user-mode-linux (UML_MOUNT_TMPFS): fix update whatever.
Diffstat (limited to 'pbuilder-user-mode-linux')
-rwxr-xr-x | pbuilder-user-mode-linux | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux index 49d76a4..5fb5c01 100755 --- a/pbuilder-user-mode-linux +++ b/pbuilder-user-mode-linux @@ -24,6 +24,7 @@ function cleanup_function () { rm -f ${INSIDE_PBUILDER} } +#default settings -- only for me. MY_ETH0=tuntap,,,192.168.30.62 UML_IP=192.168.30.199 UML_NETMASK=255.255.255.0 @@ -31,7 +32,7 @@ UML_NETWORK=192.168.30.0 UML_BROADCAST=255.255.255.255 UML_GATEWAY=192.168.30.1 PBUILDER_UML_IMAGE="/tmp/uml" -UML_MOUNT_TMPFS="yes" +UML_MOUNT_TMPFS="no" function operate_uml () { # opeartes on UML, and runs pbuilder $1 @@ -85,12 +86,11 @@ chroot /tmp/ubd1/ /tmp/chrootshell export PATH=/sbin:/bin:/usr/sbin:/usr/bin export LOGNAME="${LOGNAME}" pbuilder "$1" --buildresult "" --buildplace /tmp/ubd1/ --internal-build-uml ${BUILDING_DSC_FILE} -/bin/sh EOF chmod a+x ${INSIDE_PBUILDER} - linux eth0=${MY_ETH0} mem=100M con0=fd:0,fd:1 con=pty ubd0=/ ubd1=${PBUILDER_UML_IMAGE} devfs=mount init=${INSIDE_PBUILDER} + linux eth0=${MY_ETH0} con0=fd:0,fd:1 con=pty ubd0=/ ubd1=${PBUILDER_UML_IMAGE} devfs=mount init=${INSIDE_PBUILDER} } @@ -156,8 +156,11 @@ case "${OPERATION}" in update) operate_uml update ;; + login) + operate_uml login + ;; create) - rootstrap ${PBUILDER_UML_IMAGE} + rootstrap -s 100 ${PBUILDER_UML_IMAGE} ;; *) echo "Error: Unknown option [${OPERATION}] was specified " >&2 |