Added support to set the local time zone.
This commit is contained in:
parent
6e31ef7aa4
commit
2a54650a84
3 changed files with 14 additions and 2 deletions
|
@ -174,6 +174,9 @@
|
|||
|
||||
<xsl:template match="replaceable">
|
||||
<xsl:choose>
|
||||
<xsl:when test="ancestor::sect1[@id='ch-system-glibc']">
|
||||
<xsl:text>$TIMEZONE</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="ancestor::sect1[@id='ch-system-groff']">
|
||||
<xsl:text>$PAGE</xsl:text>
|
||||
</xsl:when>
|
||||
|
|
|
@ -32,8 +32,6 @@ define echo_finished
|
|||
@echo
|
||||
@echo -e \\t- Set a password for the root user
|
||||
@echo
|
||||
@echo -e \\t- Set your local time zone. See chapter06/glibc.html
|
||||
@echo
|
||||
@echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
||||
@echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
|
||||
@echo -e \\t/etc/sysconfig/ifconfig.eth0/ipv4 and any other configuration
|
||||
|
|
11
jhalfs
11
jhalfs
|
@ -606,6 +606,16 @@ EOF
|
|||
) >> $MKFILE.tmp
|
||||
fi
|
||||
|
||||
# For Glibc we need to set TIMEZONE envar.
|
||||
if [ "$i" = "066-glibc" ] ; then
|
||||
(
|
||||
cat << EOF
|
||||
@echo "TIMEZONE=\$(TIMEZONE)" >> envars && \\
|
||||
echo "export TIMEZONE" >> envars
|
||||
EOF
|
||||
) >> $MKFILE.tmp
|
||||
fi
|
||||
|
||||
# For Groff we need to set PAGE envar.
|
||||
if [ "$i" = "082-groff" ] ; then
|
||||
(
|
||||
|
@ -781,6 +791,7 @@ $HEADER
|
|||
SRC= /sources
|
||||
LFS= $BUILDDIR
|
||||
PAGE= $PAGE
|
||||
TIMEZONE= $TIMEZONE
|
||||
|
||||
include functions
|
||||
|
||||
|
|
Reference in a new issue