summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-14 18:25:05 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:35 +0100
commit600d183d2967ed32cba4f89ebc5f9874f7ce42ff (patch)
tree211f559135253e3b5e512e0c3c5eae0977e1b916 /functions
parent243ee8a6d3cfdcfaa3aa73b7a301f5973fcb2a6a (diff)
downloadvyos-live-build-600d183d2967ed32cba4f89ebc5f9874f7ce42ff.tar.gz
vyos-live-build-600d183d2967ed32cba4f89ebc5f9874f7ce42ff.zip
Add Echo_breakage for messages preceeding often-breaking stages and use before {c,}debootstrap calls
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/echo.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/functions/echo.sh b/functions/echo.sh
index 963e12503..5c641d2b1 100755
--- a/functions/echo.sh
+++ b/functions/echo.sh
@@ -52,3 +52,19 @@ Echo_warning ()
echo "W: ${STRING}"
}
+
+Echo_breakage ()
+{
+ Echo_message "If the following stage fails, the most likely cause of the problem is with"
+
+ case "${LH_DISTRIBUTION}" in
+ sid|unstable)
+ Echo_message "your mirror configuration, a caching proxy or the sid distribution."
+ ;;
+ *)
+ Echo_message "your mirror configuration or a caching proxy."
+ ;;
+ esac
+
+ Echo_message ${@}
+}