Changeset 94f4fb86


Ignore:
Timestamp:
12/21/2013 07:46:16 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
a90dd60
Parents:
c158fe6
Message:

Misc updates.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10404 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
9 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    rc158fe6 r94f4fb86  
    3939      <para>2013-12-21</para>
    4040      <itemizedlist>
     41        <listitem>
     42          <para>[krejzi] - Update Systemd instructions and contents
     43          for latest version of Systemd.</para>
     44        </listitem>
     45        <listitem>
     46          <para>[krejzi] - Update network configuration page to
     47          use LFS Systemd specific network configuration.</para>
     48        </listitem>
    4149        <listitem>
    4250          <para>[krejzi] - Merge LFS SVN-20131216 book.</para>
  • chapter06/attr.xml

    rc158fe6 r94f4fb86  
    4646
    4747<screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
     48
     49    <para>Prevent installation of manual pages that were already installed by
     50    Man-Pages package:</para>
     51
     52<screen><userinput remap="pre">sed -i -e "/SUBDIRS/s|man2||" man/Makefile</userinput></screen>
    4853
    4954    <para>Prepare Attr for compilation:</para>
  • chapter06/bc.xml

    rc158fe6 r94f4fb86  
    4444    <para>Prepare Bc for compilation:</para>
    4545
    46 <screen><userinput remap="configure">./configure --prefix=/usr --with-readline</userinput></screen>
     46<screen><userinput remap="configure">./configure --prefix=/usr   \
     47            --with-readline \
     48            --mandir=/usr/share/man</userinput></screen>
    4749
    4850    <variablelist>
  • chapter06/dbus.xml

    rc158fe6 r94f4fb86  
    9494    <filename>machine-id</filename> file:</para>
    9595
    96 <screen><userinput>ln -s /etc/machine-id /var/lib/dbus</userinput></screen>
     96<screen><userinput remap="install">ln -sv /etc/machine-id /var/lib/dbus</userinput></screen>
    9797
    9898  </sect2>
  • chapter06/gperf.xml

    rc158fe6 r94f4fb86  
    4343    <para>Prepare Gperf for compilation:</para>
    4444
    45 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/gperf-&gperf-version;</userinput></screen>
     45<screen><userinput remap="configure">./configure --prefix=/usr \
     46            --docdir=/usr/share/doc/gperf-&gperf-version;</userinput></screen>
    4647
    4748    <para>Compile the package:</para>
  • chapter06/systemd.xml

    rc158fe6 r94f4fb86  
    5858
    5959      <varlistentry>
    60         <term><parameter>--with-root*</parameter></term>
     60        <term><parameter>--with-root-*</parameter></term>
    6161        <listitem>
    6262          <para>These switches ensure that core programs and
     
    9696<screen><userinput remap="install">make install</userinput></screen>
    9797
     98    <para>Install manual pages which are shipped in the tarball, but were
     99    not installed by install process:</para>
     100
     101<screen><userinput remap="install">for cat in 1 3 5 7 8
     102do
     103  install -v -m644 man/*.${cat} /usr/share/man/man${cat}
     104done</userinput></screen>
     105
     106    <para>Move NSS myhostname library to <filename
     107    class="directory">/lib</filename>:</para>
     108
     109<screen><userinput remap="install">mv -v /usr/lib/libnss_myhostname.so.2 /lib</userinput></screen>
     110
    98111    <para>Create the Sysvinit compatibility symlinks, so Systemd is used
    99112    as the default init system:</para>
    100113
    101114<screen><userinput remap="install">for tool in runlevel reboot shutdown poweroff halt telinit; do
    102      ln -sfv ../bin/systemctl /sbin/$tool
     115     ln -sfv ../bin/systemctl /sbin/${tool}
    103116done
    104117ln -sfv ../lib/systemd/systemd /sbin/init</userinput></screen>
     
    111124    Journald:</para>
    112125
    113 <screen><userinput>systemd-machine-id-setup</userinput></screen>
     126<screen><userinput remap="install">systemd-machine-id-setup</userinput></screen>
    114127
    115128  </sect2>
     
    124137
    125138      <seglistitem>
    126         <seg>halt, hostnamectl, init, journalctl, kernel-install, localectl,
    127         loginctl, poweroff, reboot, runlevel, shutdown, systemctl,
    128         systemd-analyze, systemd-ask-password, systemd-cat, systemd-cgls,
    129         systemd-cgtop, systemd-coredumpctl, systemd-delta, systemd-detect-virt,
    130         systemd-inhibit, systemd-machine-id-setup, systemd-notify,
    131         systemd-nspawn, systemd-stdio-bridge, systemd-tmpfiles,
    132         systemd-tty-ask-password-agent, telinit, timedatectl and
    133         udevadm</seg>
     139        <seg>bootctl, halt, hostnamectl, init, journalctl, kernel-install, localectl,
     140        loginctl, machinectl, poweroff, reboot, runlevel, shutdown, systemctl,
     141        systemd-analyze, systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop,
     142        systemd-coredumpctl, systemd-delta, systemd-detect-virt, systemd-inhibit,
     143        systemd-machine-id-setup, systemd-notify, systemd-nspawn, systemd-run,
     144        systemd-stdio-bridge, systemd-tmpfiles, systemd-tty-ask-password-agent, telinit,
     145        timedatectl, and udevadm</seg>
    134146        <seg>libnss_myhostname.so.2, libsystemd-daemon.so, libsystemd-id128.so,
    135         libsystemd-journal.so, libsystemd-login.so and libudev.so</seg>
    136         <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d, /etc/rpm,
     147        libsystemd-journal.so, libsystemd-login.so, and libudev.so</seg>
     148        <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d,
    137149        /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
    138150        /etc/xdg/systemd, /lib/systemd, /lib/udev, /usr/include/systemd,
    139         /usr/lib/binfmt.d, /usr/lib/kernel, /usr/lib/modules-load.d, /usr/lib/sysctl.d,
    140         /usr/lib/systemd, /usr/lib/tmpfiles.d, /usr/share/doc/systemd-&systemd-version;,
    141         /usr/share/systemd, /var/lib/systemd and /var/log/journal</seg>
     151        /usr/lib/binfmt.d, /usr/lib/kernel, /usr/lib/modules-load.d, /usr/lib/rpm,
     152        /usr/lib/sysctl.d, /usr/lib/systemd, /usr/lib/tmpfiles.d,
     153        /usr/share/doc/systemd-&systemd-version;, /usr/share/systemd,
     154        /var/lib/systemd and /var/log/journal</seg>
    142155      </seglistitem>
    143156    </segmentedlist>
     
    147160      <?dbfo list-presentation="list"?>
    148161      <?dbhtml list-presentation="table"?>
     162
     163<!--      <varlistentry id="bootctl">
     164        <term><command>bootctl</command></term>
     165        <listitem>
     166          <para></para>
     167          <indexterm zone="ch-system-systemd bootctl">
     168            <primary sortas="b-bootctl">bootctl</primary>
     169          </indexterm>
     170        </listitem>
     171      </varlistentry> -->
    149172
    150173      <varlistentry id="halt">
     
    228251      </varlistentry>
    229252
     253      <varlistentry id="machinectl">
     254        <term><command>machinectl</command></term>
     255        <listitem>
     256          <para>used to introspect and control the state of the Systemd Virtual
     257          Machine and Container Registration Manager</para>
     258          <indexterm zone="ch-system-systemd machinectl">
     259            <primary sortas="b-machinectl">machinectl</primary>
     260          </indexterm>
     261        </listitem>
     262      </varlistentry>
     263
    230264      <varlistentry id="poweroff">
    231265        <term><command>poweroff</command></term>
     
    410444          <indexterm zone="ch-system-systemd systemd-nspawn">
    411445            <primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
     446          </indexterm>
     447        </listitem>
     448      </varlistentry>
     449
     450      <varlistentry id="systemd-run">
     451        <term><command>systemd-run</command></term>
     452        <listitem>
     453          <para>used to create and start a transient .service or a .scope unit and
     454          run the specified command in it.</para>
     455          <indexterm zone="ch-system-systemd systemd-run">
     456            <primary sortas="b-systemd-run">systemd-run</primary>
    412457          </indexterm>
    413458        </listitem>
  • chapter07/network.xml

    rc158fe6 r94f4fb86  
    2323    <para>Which interfaces are brought up and down by the network script
    2424    depends on the files in <filename
    25     class="directory">/etc/sysconfig/</filename>.  This directory should
     25    class="directory">/etc/sysconfig/</filename>. This directory should
    2626    contain a file for each interface to be configured, such as
    2727    <filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is
    28     meaningful to the administrator such as the device name (e.g. eth0).
     28    required to be a Network Card Interface name (e.g. eth0).
    2929    Inside this file are attributes to this interface, such as its IP
    3030    address(es), subnet masks, and so forth.  It is necessary that
    3131    the stem of the filename be <emphasis>ifconfig</emphasis>.</para>
     32
     33    <note><para>Udev may assign random Network Card Interface names
     34    for some network cards such as enp2s1. If you are not sure what
     35    your Network Card Interface name is, you can always run
     36    <command>ip l</command> after you have booted your system. Again,
     37    it is important that <filename>ifconfig.xyz</filename> is named
     38    after correct Network Card Interface name (e.g.
     39    <filename>ifconfig.enp2s1</filename> or
     40    <filename>ifconfig.eth0</filename>) or Systemd will fail to bring
     41    up your network interface.</para></note>
    3242
    3343    <para>The following command creates a sample file for the
     
    3646<screen><userinput>cd /etc/sysconfig/
    3747cat &gt; ifconfig.eth0 &lt;&lt; "EOF"
    38 <literal>ONBOOT=yes
    39 IFACE=eth0
     48<literal>IFACE=eth0
    4049SERVICE=ipv4-static
    4150IP=192.168.1.1
     
    4857    the proper setup.</para>
    4958
    50     <para>If the <envar>ONBOOT</envar> variable is set to <quote>yes</quote> the
    51     network script will bring up the Network Interface Card (NIC) during
    52     booting of the system. If set to anything but <quote>yes</quote> the NIC
    53     will be ignored by the network script and not be automatically brought up.
    54     The interface can be manually started or stopped with the
    55     <command>ifup</command> and <command>ifdown</command> commands.</para>
    56 
    5759    <para>The <envar>IFACE</envar> variable defines the interface name,
    58     for example, eth0.  It is required for all network device configuration
    59     files. </para>
     60    for example, eth0. It is required for all network device configuration
     61    files.</para>
    6062
    6163    <para>The <envar>SERVICE</envar> variable defines the method used for
    62     obtaining the IP address. The LFS-Bootscripts package has a modular IP
    63     assignment format, and creating additional files in the <filename
     64    obtaining the IP address. The LFS-Network-Scripts package has a modular
     65    IP assignment format, and creating additional files in the <filename
    6466    class="directory">/lib/services/</filename> directory allows other IP
    6567    assignment methods. This is commonly used for Dynamic Host Configuration
     
    8183
    8284    <para>For more information see the <command>ifup</command> man page.</para>
     85
     86  </sect2>
     87
     88  <sect2>
     89    <title>Configuring the Network Interface Card at boot</title>
     90
     91    <para>Enabling of the Network Interface Card configuration is
     92    done per interface. To enable Network Interface Card
     93    configuration at boot, run:</para>
     94
     95<screen><userinput>systemctl enable ifupdown@eth0</userinput></screen>
     96
     97    <para>To disable previously enabled Network Interface
     98    Card configuration at boot, run:</para>
     99
     100<screen><userinput>systemctl disable ifupdown@eth0</userinput></screen>
     101
     102    <para>To manually start the Network Interface Card configuration,
     103    run:</para>
     104
     105<screen><userinput>systemctl start ifupdown@eth0</userinput></screen>
     106
     107    <para>Replace eth0 with the correct Network Interface Card
     108    name as described on the beginning of this page.</para>
    83109
    84110  </sect2>
  • general.ent

    rc158fe6 r94f4fb86  
    1 <!ENTITY version         "SYTEMD-20131221">
     1<!ENTITY version         "SYSTEMD-20131221">
    22<!ENTITY releasedate     "December 21, 2013">
    33<!ENTITY copyrightdate   "1999-2013"><!-- jhalfs needs a literal dash, not &ndash; -->
  • network-scripts/lfs/units/ifupdownat.service

    rc158fe6 r94f4fb86  
    11[Unit]
    2 Description=Start ifupdown for %i
    3 Requires=sys-subsystem-net-devices-%i.device
     2Description=Start ifupdown for %I
    43After=sys-subsystem-net-devices-%i.device
     4BindTo=sys-subsystem-net-devices-%i.device
     5ConditionPathExists=/etc/sysconfig/ifconfig.%i
    56
    67[Service]
    7 ExecStart=/sbin/ifup %i
    8 ExecStop=/sbin/ifdown %i
     8ExecStart=/sbin/ifup %I
     9ExecStop=/sbin/ifdown %I
    910RemainAfterExit=true
    1011
Note: See TracChangeset for help on using the changeset viewer.