Fixed Udev script re-run after a build failure in LFS.

This commit is contained in:
Manuel Canales Esparcia 2006-07-30 11:24:47 +00:00
parent d81c640cfa
commit ccc7c2bd55
2 changed files with 6 additions and 3 deletions

View file

@ -132,6 +132,12 @@
<xsl:value-of select="substring-after(string(),'patch')"/> <xsl:value-of select="substring-after(string(),'patch')"/>
<xsl:text>&#xA;</xsl:text> <xsl:text>&#xA;</xsl:text>
</xsl:when> </xsl:when>
<!-- Fix Udev reinstallation after a build failure -->
<xsl:when test="contains(string(),'firmware,udev')">
<xsl:text>if [[ ! -d /lib/udev/devices ]] ; then&#xA;</xsl:text>
<xsl:apply-templates/>
<xsl:text>&#xA;fi&#xA;</xsl:text>
</xsl:when>
<!-- Setting $LANG for /etc/profile --> <!-- Setting $LANG for /etc/profile -->
<xsl:when test="ancestor::sect1[@id='ch-scripts-profile'] and <xsl:when test="ancestor::sect1[@id='ch-scripts-profile'] and
contains(string(),'export LANG=')"> contains(string(),'export LANG=')">

View file

@ -165,9 +165,6 @@ chapter6_Makefiles() {
done done
# Remove Bzip2 binaries before make install # Remove Bzip2 binaries before make install
sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i chapter06$N/*-bzip2 sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i chapter06$N/*-bzip2
# Let some Udev pre-installation commands to fail
sed -e 's@/lib/udev/devices/fd@& || true@' \
-e 's/mknod -m.*/& || true/' -i chapter06$N/*-udev
fi fi
echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter6$N${R_arrow}" echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter6$N${R_arrow}"