Author: pierre Date: Fri Mar 8 23:18:52 2019 New Revision: 4077 Log: In the systemd book, the network card is designed as "<network-device-name>", not "eth0".
Modified: jhalfs/trunk/LFS/lfs.xsl Modified: jhalfs/trunk/LFS/lfs.xsl ============================================================================== --- jhalfs/trunk/LFS/lfs.xsl Fri Mar 8 23:15:41 2019 (r4076) +++ jhalfs/trunk/LFS/lfs.xsl Fri Mar 8 23:18:52 2019 (r4077) @@ -695,7 +695,7 @@ <xsl:template name="outputsysdnet"> <xsl:param name="netstring" select="''"/> <!-- We suppose that book example has the following values: - - interface: eth0 + - interface: <network-device-name> - ip: 192.168.0.2 - gateway: 192.168.0.1 - prefix: 24 @@ -703,15 +703,15 @@ - Domain: <Your Domain Name> and gateway comes before DNS. Change below if book changes --> <xsl:choose> - <xsl:when test="contains($netstring,'eth0')"> + <xsl:when test="contains($netstring,'<network-device-name>')"> <xsl:call-template name="outputsysdnet"> <xsl:with-param name="netstring" - select="substring-before($netstring,'eth0')"/> + select="substring-before($netstring,'<network-device-name>')"/> </xsl:call-template> <xsl:value-of select="$interface"/> <xsl:call-template name="outputsysdnet"> <xsl:with-param name="netstring" - select="substring-after($netstring,'eth0')"/> + select="substring-after($netstring,'<network-device-name>')"/> </xsl:call-template> </xsl:when> <xsl:when test="contains($netstring,'192.168.0.1') and -- http://lists.linuxfromscratch.org/listinfo/alfs-log Unsubscribe: See the above information page