tazlito rev 49
We need a mirror url to just boot LiveCD and get and gen flavor.
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 08 15:12:05 2008 +0100 (2008-03-08) |
parents | 5a54d67ef28b |
children | 11620b68ef34 |
files | tazlito |
line diff
1.1 --- a/tazlito Sat Mar 08 11:43:08 2008 +0000 1.2 +++ b/tazlito Sat Mar 08 15:12:05 2008 +0100 1.3 @@ -26,6 +26,7 @@ 1.4 INSTALLED=$LOCALSTATE/installed 1.5 CACHE_DIR=/var/cache/tazpkg 1.6 MIRROR=$LOCALSTATE/mirror 1.7 +DEFAULT_MIRROR="http://download.tuxfamily.org/slitaz/packages/`cat /etc/slitaz-release`/" 1.8 1.9 # Try to include config file, continue if command is gen-config or exit. 1.10 # The main config used by default is in /etc/tazlito. 1.11 @@ -48,6 +49,14 @@ 1.12 fi 1.13 fi 1.14 1.15 +# While Tazpkg is not used the default mirror url file does not exist 1.16 +# and user can't recharge the list of flavors. 1.17 +if test $(id -u) = 0 ; then 1.18 + if [ ! -f "$MIRROR" ]; then 1.19 + echo "$DEFAULT_MIRROR" > $MIRROR 1.20 + fi 1.21 +fi 1.22 + 1.23 # Set the rootfs and rootcd path with $DISTRO 1.24 # configuration variable. 1.25 ROOTFS=$DISTRO/rootfs