aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-user-mode-linux
diff options
context:
space:
mode:
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
;;