mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-23 13:49:37 +01:00
/etc/localtime needs to be a symlink for timedatectl to work
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10195 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
d415c2b22f
commit
2ebc0d98fe
@ -39,6 +39,11 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>2013-03-04</para>
|
<para>2013-03-04</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[matthew] - Make the <filename>/etc/localtime</filename> file a
|
||||||
|
symlink again, so that <command>timedatectl</command> displays the
|
||||||
|
timezone correctly.</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>[matthew] - Document how to configure the virtual console under
|
<para>[matthew] - Document how to configure the virtual console under
|
||||||
Systemd.</para>
|
Systemd.</para>
|
||||||
|
@ -346,28 +346,11 @@ unset ZONEINFO</userinput></screen>
|
|||||||
<para>Then create the <filename>/etc/localtime</filename> file by
|
<para>Then create the <filename>/etc/localtime</filename> file by
|
||||||
running:</para>
|
running:</para>
|
||||||
|
|
||||||
<screen><userinput>cp -v --remove-destination /usr/share/zoneinfo/<replaceable><xxx></replaceable> \
|
<screen><userinput>ln -s /etc/localtime /usr/share/zoneinfo/<replaceable><xxx></replaceable></userinput></screen>
|
||||||
/etc/localtime</userinput></screen>
|
|
||||||
|
|
||||||
<para>Replace <replaceable><xxx></replaceable> with the name of the
|
<para>Replace <replaceable><xxx></replaceable> with the name of the
|
||||||
time zone selected (e.g., Canada/Eastern).</para>
|
time zone selected (e.g., Canada/Eastern).</para>
|
||||||
|
|
||||||
<variablelist>
|
|
||||||
<title>The meaning of the cp option:</title>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term><parameter>--remove-destination</parameter></term>
|
|
||||||
<listitem>
|
|
||||||
<para>This is needed to force removal of the already existing symbolic
|
|
||||||
link. The reason for copying the file instead of using a symlink is to
|
|
||||||
cover the situation where <filename class="directory">/usr</filename>
|
|
||||||
is on a separate partition. This could be important when booted into
|
|
||||||
single user mode.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
</variablelist>
|
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 id="conf-ld" role="configuration">
|
<sect2 id="conf-ld" role="configuration">
|
||||||
|
@ -34,15 +34,12 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
|
||||||
<para>Third, configuring hostname, keyboard layout and system clock.</para>
|
<para>Third, configuring the hostname, and keyboard layout.</para>
|
||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para><xref linkend="ch-scripts-hostname" role="."/></para>
|
<para><xref linkend="ch-scripts-hostname" role="."/></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
|
||||||
<para><xref linkend="ch-scripts-setclock" role="."/></para>
|
|
||||||
</listitem>
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para><xref linkend="ch-scripts-console" role="."/></para>
|
<para><xref linkend="ch-scripts-console" role="."/></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
Loading…
Reference in New Issue
Block a user