Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (7a49eb16b18915165259fb1c705c429eca137bfe)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Justin Boffemmyer <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (7a49eb16b18915165259fb1c705c429eca137bfe)
  • Date: Sat, 27 Dec 2008 02:03:52 -0600

GIT changes to test cauldron by Justin Boffemmyer <flux AT sourcemage.org>:

scripts/spellcaster.sh | 7 +++++++
1 files changed, 7 insertions(+)

New commits:
commit 7a49eb16b18915165259fb1c705c429eca137bfe
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>

scripts/spellcaster.sh: copy resolv.conf for wgets

Copy the host resolv.conf to the target so that sorcery can wget sources
for spell building inside the target.

diff --git a/scripts/spellcaster.sh b/scripts/spellcaster.sh
index 5453168..01cd42c 100755
--- a/scripts/spellcaster.sh
+++ b/scripts/spellcaster.sh
@@ -96,6 +96,10 @@ function prepare_target() {
export ispells="ispells.$TYPE"
export ospells="ospells.$TYPE"

+ # Copy resolv.conf so spell sources can be downloaded inside the
TARGET
+ cp -f "$TARGET"/etc/resolv.conf "$TARGET"/tmp/resolv.conf &&
+ cp -f /etc/resolv.conf "$TARGET"/etc/resolv.conf
+
# If using the linux spell copy the kernel config to TARGET sorcery
grep -q '^linux$' "$CAULDRONDIR/$rspells" "$CAULDRONDIR/$ospells" &&
cp "$CAULDRONDIR/config-2.6" "$TARGET/etc/sorcery/local/kernel.config"
@@ -169,6 +173,9 @@ OPTIONAL
function clean_target() {
local config="etc/sorcery/local/kernel.config"

+ # Restore resolv.conf
+ cp -f "$TARGET"/tmp/resolv.conf "$TARGET"/etc/resolv.conf
+
# Clean up the target
rm -f "$TARGET/rspells" \
"$TARGET/ispells" \



  • [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (7a49eb16b18915165259fb1c705c429eca137bfe), Justin Boffemmyer, 12/27/2008

Archive powered by MHonArc 2.6.24.

Top of Page