Support wayback option also in bootstrapping the initial chroot
authorMichael Prokop <mika@grml.org>
Fri, 8 Jan 2016 14:17:52 +0000 (15:17 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 8 Jan 2016 14:18:04 +0000 (15:18 +0100)
grml-live

index 23a89d7..d9620d0 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -634,7 +634,11 @@ fi
 
 # generate nfsroot configuration for FAI on the fly
 if [ -z "$FAI_DEBOOTSTRAP" ] ; then
-  FAI_DEBOOTSTRAP="$SUITE http://ftp.debian.org/debian"
+  if [ -n "$WAYBACK_DATE" ] ; then
+    FAI_DEBOOTSTRAP="$SUITE http://snapshot.debian.org/archive/debian/$WAYBACK_DATE/"
+  else
+    FAI_DEBOOTSTRAP="$SUITE http://ftp.debian.org/debian"
+  fi
 fi
 
 if [ -z "$FAI_DEBOOTSTRAP_OPTS" ] ; then