diff --git a/dump-lfs-scripts.xsl b/dump-lfs-scripts.xsl
index 428fcba..221e02e 100644
--- a/dump-lfs-scripts.xsl
+++ b/dump-lfs-scripts.xsl
@@ -115,9 +115,10 @@
make mrproper
cp -v ../kernel-config .config
-
+
diff --git a/jhalfs b/jhalfs
index 829026b..20a4e1e 100755
--- a/jhalfs
+++ b/jhalfs
@@ -170,8 +170,13 @@ extract_commands() {
for i in patches packages ; do rm -f $i ; done
grep "\-version" $BOOK/general.ent | sed -e 's@@"@' \
-e '/generic/d' >> packages
- echo `grep "glibc" packages | sed 's@glibc@glibc-linuxthreads@'` >> packages
+ echo `grep "glibc" packages | sed 's@glibc@&-linuxthreads@'` >> packages
echo `grep "udev-config-file" $BOOK/general.ent | sed -e 's@@"@'` >> packages
+ # Download the module-init-tools-testsuite package only
+ # if the test suite will be run.
+ if [ "$TEST" = "1" ] ; then
+ echo `grep "module" packages | sed 's@tools@&-testsuite@'` >> packages
+ fi
# If we are buildind the UTF-8 branch, the glibc-libidn package is required
if grep -q "man-db-version" $BOOK/general.ent ; then
echo `grep "glibc" packages | sed 's@glibc@glibc-libidn@'` >> packages
@@ -188,9 +193,10 @@ download() {
#----------------------------#
cd $BUILDDIR/sources
- # Hackish fix for the bash-doc and glibc-{linuxthreads,libidn} packages that
- # doesn't conform to norms in the URL scheme.
- DIR=`echo $1 | sed -e 's@-doc@@' -e 's@-linuxthreads@@' -e 's@-libidn@@'`
+ # Hackish fix for the bash-doc, glibc-{linuxthreads,libidn} and
+ # module-init-tools-testsuite packages that doesn't conform to
+ # norms in the URL scheme.
+ DIR=`echo $1 | sed 's@-doc@@';'s@-linuxthreads@@';'s@-libidn@@';'s@-testsuite@@'`
# Find the md5 sum for this package.
if [ $2 != MD5SUMS ] ; then MD5=`grep " $2" MD5SUMS` ; fi