From 9e3c7737d40602754fa6634f3e263baff6149185 Mon Sep 17 00:00:00 2001 From: dancer Date: Fri, 15 Aug 2003 09:43:31 +0000 Subject: + * "pbuilder-user-mode-linux create" will run properly when --distribution + is unset. --- pbuilder-user-mode-linux | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pbuilder-user-mode-linux') 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 ;; -- cgit v1.2.3