tags 682796 patch
thanks
Hi,
please find below a patch fixing the problem. There might be better
ways to determine that we are installing from a CD image.
Best regards,
Andi
>From b572da44634e2bb32579e0d54be07dd9b6ff7ff0 Mon Sep 17 00:00:00 2001
From: "Andreas B. Mundt" <[email protected]>
Date: Thu, 26 Jul 2012 12:41:40 +0200
Subject: [PATCH] Use the local mirror from the cd when installing from CD.
---
lib/subroutines | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/subroutines b/lib/subroutines
index e1da83f..7c52bd8 100644
--- a/lib/subroutines
+++ b/lib/subroutines
@@ -952,6 +952,11 @@ task_repository () {
fi
fcopy -ir /etc/apt # copy all other apt config files from the config space
+ if [ -f $FAI_ETC_DIR/apt/sources.list ] && grep -q cskoeln
$FAI_ETC_DIR/apt/sources.list ; then
+ echo "We install from a fai-cd image; use mirror from CD:"
+ cp -vr $FAI_ETC_DIR/apt/* $FAI_ROOT/etc/apt/
+ fi
+
if [ X$FAI_ALLOW_UNSIGNED = X1 ]; then
cat <<EOF > $FAI_ROOT/etc/apt/apt.conf.d/10fai
APT::Get::AllowUnauthenticated "true";
--
1.7.10.4
--
----------------------------------
A N D R E A S B. M U N D T
GPG key: 4096R/617B586D 2010-03-22 Andreas B. Mundt--<[email protected]>
Andreas B. Mundt--<[email protected]>
============================================================================
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]