Fixed Udev script re-run after a build failure in LFS.
This commit is contained in:
parent
d81c640cfa
commit
ccc7c2bd55
2 changed files with 6 additions and 3 deletions
|
@ -132,6 +132,12 @@
|
|||
<xsl:value-of select="substring-after(string(),'patch')"/>
|
||||
<xsl:text>
</xsl:text>
|
||||
</xsl:when>
|
||||
<!-- Fix Udev reinstallation after a build failure -->
|
||||
<xsl:when test="contains(string(),'firmware,udev')">
|
||||
<xsl:text>if [[ ! -d /lib/udev/devices ]] ; then
</xsl:text>
|
||||
<xsl:apply-templates/>
|
||||
<xsl:text>
fi
</xsl:text>
|
||||
</xsl:when>
|
||||
<!-- Setting $LANG for /etc/profile -->
|
||||
<xsl:when test="ancestor::sect1[@id='ch-scripts-profile'] and
|
||||
contains(string(),'export LANG=')">
|
||||
|
|
|
@ -165,9 +165,6 @@ chapter6_Makefiles() {
|
|||
done
|
||||
# Remove Bzip2 binaries before make install
|
||||
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
|
||||
|
||||
echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter6$N${R_arrow}"
|
||||
|
|
Reference in a new issue