aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-user-mode-linux
diff options
context:
space:
mode:
authordancer <dancer>2003-08-15 09:43:31 +0000
committerdancer <dancer>2003-08-15 09:43:31 +0000
commit9e3c7737d40602754fa6634f3e263baff6149185 (patch)
tree33b00e4df5a1ad4397306126adc520fa90cf91bc /pbuilder-user-mode-linux
parent94960fc621978db570f42f64faf6a0464e01e8ba (diff)
downloadpbuilder-9e3c7737d40602754fa6634f3e263baff6149185.tar
pbuilder-9e3c7737d40602754fa6634f3e263baff6149185.tar.gz
+ * "pbuilder-user-mode-linux create" will run properly when --distribution
+ is unset.
Diffstat (limited to 'pbuilder-user-mode-linux')
-rwxr-xr-xpbuilder-user-mode-linux4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux
index 461483e..616ab85 100755
--- a/pbuilder-user-mode-linux
+++ b/pbuilder-user-mode-linux
@@ -248,7 +248,9 @@ case "${OPERATION}" in
mkdir ~/.pbuilder-user-mode-linux
fi
cd ~/.pbuilder-user-mode-linux
- sed "s/dist=.*/dist=${UML_DISTRIBUTION}/" /etc/rootstrap/rootstrap.conf > rootstrap.conf
+ if [ -n "${UML_DISTRIBUTION}" ]; then
+ sed "s/dist=.*/dist=${UML_DISTRIBUTION}/" /etc/rootstrap/rootstrap.conf > rootstrap.conf
+ fi
rootstrap -s 1000 ${PBUILDER_UML_IMAGE}
operate_uml update
;;