# HG changeset patch # User Christophe Lincoln # Date 1204985525 -3600 # Node ID 2d0b318dcf6f50c3dc3945a278c83ff53e8ae8f1 # Parent 5a54d67ef28befad2918cd284d4f0364ea6fdbb5 We need a mirror url to just boot LiveCD and get and gen flavor. diff -r 5a54d67ef28b -r 2d0b318dcf6f tazlito --- a/tazlito Sat Mar 08 11:43:08 2008 +0000 +++ b/tazlito Sat Mar 08 15:12:05 2008 +0100 @@ -26,6 +26,7 @@ INSTALLED=$LOCALSTATE/installed CACHE_DIR=/var/cache/tazpkg MIRROR=$LOCALSTATE/mirror +DEFAULT_MIRROR="http://download.tuxfamily.org/slitaz/packages/`cat /etc/slitaz-release`/" # Try to include config file, continue if command is gen-config or exit. # The main config used by default is in /etc/tazlito. @@ -48,6 +49,14 @@ fi fi +# While Tazpkg is not used the default mirror url file does not exist +# and user can't recharge the list of flavors. +if test $(id -u) = 0 ; then + if [ ! -f "$MIRROR" ]; then + echo "$DEFAULT_MIRROR" > $MIRROR + fi +fi + # Set the rootfs and rootcd path with $DISTRO # configuration variable. ROOTFS=$DISTRO/rootfs