From b3d03237059024c52cfb2a6d5d41a6c423ff0b8c Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Wed, 5 Oct 2005 19:05:50 +0000 Subject: [PATCH] Fix extract_modules to just echo a warning that it is missing git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@843 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 5 ++++- targets/support/functions.sh | 10 +++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e544cc2f..d2c99e00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.335 2005/09/30 20:16:50 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.336 2005/10/05 19:05:50 rocket Exp $ + + 05 Oct 2005; Eric Edgar targets/support/functions.sh: + Fix extract_modules to just echo a warning that it is missing 30 Sep 2005; Chris Gianelloni catalyst, files/catalyst.conf: diff --git a/targets/support/functions.sh b/targets/support/functions.sh index acbc9373..cdc4c39a 100755 --- a/targets/support/functions.sh +++ b/targets/support/functions.sh @@ -129,9 +129,13 @@ extract_modules() { #$2 = kname kmodules="${clst_chroot_path}/usr/portage/packages/gk_binaries/${2}-modules-${clst_version_stamp}.tar.bz2" - [ ! -e "${kmodules}" ] && die "Can't find kernel modules tarball at ${kmodules}" - mkdir -p ${1}/ - tar xjf ${kmodules} -C ${1} lib + if [ ! -e "${kmodules}" ] + then + mkdir -p ${1}/ + tar xjf ${kmodules} -C ${1} lib + else + echo "Can't find kernel modules tarball at ${kmodules}. Skipping...." + fi } extract_kernel() { #$1 = Destination -- 2.26.2