On 3/9/2019 10:38 AM, Pierre Labastie via lfs-dev wrote:
On 09/03/2019 17:09, DJ Lucas via lfs-dev wrote:
This reminds me, I'm getting /etc/sysconfig/ifconfig.eth0 with IFACE=enp3s0.
Yes, completely forgot about that... Problem is, I want to take my information
from the book, and the book hardcodes ifconfig.eth0. Maybe make "eth0"
replaceable, so that lfs.xsl can catch it more easily... Would it be
acceptable (would render eth0 in italics)? Note that lfs.xsl detects eth0 in
"IFACE=eth0", because it is in a <literal> tag. That's less easy outside any
specific tag (I don't consider <userinput> as specific in this book ;)
Yep, that should probably be done anyway, you can still use the value
and just do a quick append, something to the effect of:
(source /etc/sysconfig/ifconfig.eth0 &&
mv /etc/sysconfig/ifconfig.{eth0,${IFACE}})
--DJ
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page