Changeset 94f4fb86
- Timestamp:
- 12/21/2013 07:46:16 PM (10 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- a90dd60
- Parents:
- c158fe6
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
rc158fe6 r94f4fb86 39 39 <para>2013-12-21</para> 40 40 <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> 41 49 <listitem> 42 50 <para>[krejzi] - Merge LFS SVN-20131216 book.</para> -
chapter06/attr.xml
rc158fe6 r94f4fb86 46 46 47 47 <screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&-@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> 48 53 49 54 <para>Prepare Attr for compilation:</para> -
chapter06/bc.xml
rc158fe6 r94f4fb86 44 44 <para>Prepare Bc for compilation:</para> 45 45 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> 47 49 48 50 <variablelist> -
chapter06/dbus.xml
rc158fe6 r94f4fb86 94 94 <filename>machine-id</filename> file:</para> 95 95 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> 97 97 98 98 </sect2> -
chapter06/gperf.xml
rc158fe6 r94f4fb86 43 43 <para>Prepare Gperf for compilation:</para> 44 44 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> 46 47 47 48 <para>Compile the package:</para> -
chapter06/systemd.xml
rc158fe6 r94f4fb86 58 58 59 59 <varlistentry> 60 <term><parameter>--with-root *</parameter></term>60 <term><parameter>--with-root-*</parameter></term> 61 61 <listitem> 62 62 <para>These switches ensure that core programs and … … 96 96 <screen><userinput remap="install">make install</userinput></screen> 97 97 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 102 do 103 install -v -m644 man/*.${cat} /usr/share/man/man${cat} 104 done</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 98 111 <para>Create the Sysvinit compatibility symlinks, so Systemd is used 99 112 as the default init system:</para> 100 113 101 114 <screen><userinput remap="install">for tool in runlevel reboot shutdown poweroff halt telinit; do 102 ln -sfv ../bin/systemctl /sbin/$ tool115 ln -sfv ../bin/systemctl /sbin/${tool} 103 116 done 104 117 ln -sfv ../lib/systemd/systemd /sbin/init</userinput></screen> … … 111 124 Journald:</para> 112 125 113 <screen><userinput >systemd-machine-id-setup</userinput></screen>126 <screen><userinput remap="install">systemd-machine-id-setup</userinput></screen> 114 127 115 128 </sect2> … … 124 137 125 138 <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> 134 146 <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, 137 149 /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev, 138 150 /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> 142 155 </seglistitem> 143 156 </segmentedlist> … … 147 160 <?dbfo list-presentation="list"?> 148 161 <?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> --> 149 172 150 173 <varlistentry id="halt"> … … 228 251 </varlistentry> 229 252 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 230 264 <varlistentry id="poweroff"> 231 265 <term><command>poweroff</command></term> … … 410 444 <indexterm zone="ch-system-systemd systemd-nspawn"> 411 445 <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> 412 457 </indexterm> 413 458 </listitem> -
chapter07/network.xml
rc158fe6 r94f4fb86 23 23 <para>Which interfaces are brought up and down by the network script 24 24 depends on the files in <filename 25 class="directory">/etc/sysconfig/</filename>. 25 class="directory">/etc/sysconfig/</filename>. This directory should 26 26 contain a file for each interface to be configured, such as 27 27 <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). 29 29 Inside this file are attributes to this interface, such as its IP 30 30 address(es), subnet masks, and so forth. It is necessary that 31 31 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> 32 42 33 43 <para>The following command creates a sample file for the … … 36 46 <screen><userinput>cd /etc/sysconfig/ 37 47 cat > ifconfig.eth0 << "EOF" 38 <literal>ONBOOT=yes 39 IFACE=eth0 48 <literal>IFACE=eth0 40 49 SERVICE=ipv4-static 41 50 IP=192.168.1.1 … … 48 57 the proper setup.</para> 49 58 50 <para>If the <envar>ONBOOT</envar> variable is set to <quote>yes</quote> the51 network script will bring up the Network Interface Card (NIC) during52 booting of the system. If set to anything but <quote>yes</quote> the NIC53 will be ignored by the network script and not be automatically brought up.54 The interface can be manually started or stopped with the55 <command>ifup</command> and <command>ifdown</command> commands.</para>56 57 59 <para>The <envar>IFACE</envar> variable defines the interface name, 58 for example, eth0. 59 files. 60 for example, eth0. It is required for all network device configuration 61 files.</para> 60 62 61 63 <para>The <envar>SERVICE</envar> variable defines the method used for 62 obtaining the IP address. The LFS- Bootscripts package has a modular IP63 assignment format, and creating additional files in the <filename64 obtaining the IP address. The LFS-Network-Scripts package has a modular 65 IP assignment format, and creating additional files in the <filename 64 66 class="directory">/lib/services/</filename> directory allows other IP 65 67 assignment methods. This is commonly used for Dynamic Host Configuration … … 81 83 82 84 <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> 83 109 84 110 </sect2> -
general.ent
rc158fe6 r94f4fb86 1 <!ENTITY version "SY TEMD-20131221">1 <!ENTITY version "SYSTEMD-20131221"> 2 2 <!ENTITY releasedate "December 21, 2013"> 3 3 <!ENTITY copyrightdate "1999-2013"><!-- jhalfs needs a literal dash, not – --> -
network-scripts/lfs/units/ifupdownat.service
rc158fe6 r94f4fb86 1 1 [Unit] 2 Description=Start ifupdown for %i 3 Requires=sys-subsystem-net-devices-%i.device 2 Description=Start ifupdown for %I 4 3 After=sys-subsystem-net-devices-%i.device 4 BindTo=sys-subsystem-net-devices-%i.device 5 ConditionPathExists=/etc/sysconfig/ifconfig.%i 5 6 6 7 [Service] 7 ExecStart=/sbin/ifup % i8 ExecStop=/sbin/ifdown % i8 ExecStart=/sbin/ifup %I 9 ExecStop=/sbin/ifdown %I 9 10 RemainAfterExit=true 10 11
Note:
See TracChangeset
for help on using the changeset viewer.