[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 4/4] Add backward compatibility to LIVE_SECTION variable

From: Otavio Salvador <otavio@ossystems.com.br>

A new LIVE_SECTIONS variable has been introduced to allow change 
the sections to be used when building the chroot and like. Previously,
a LIVE_SECTION variable was use for same propouse.

This patch adds backward compatibility while also prints a warning to
advice the user to change to the new way.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

 src/scripts/02defaults.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/scripts/02defaults.sh b/src/scripts/02defaults.sh
index 49499c9..5ed5509 100644
--- a/src/scripts/02defaults.sh
+++ b/src/scripts/02defaults.sh
@@ -262,6 +262,12 @@ Defaults ()
+	# Backward compatibility
+	if [ -n "${LIVE_SECTION}" ]; then
+		echo "WARNING: LIVE_SECTION option is deprecated. Change it to LIVE_SECTIONS."
+	fi
 	# Set debian sections
 	if [ -z "${LIVE_SECTIONS}" ]

Reply to: