- Timestamp:
- 07/09/2014 12:16:01 PM (10 years ago)
- Branches:
- gnome
- Children:
- 4d66725
- Parents:
- 65669e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/systemd.xml
r65669e5 r60b5b0b 30 30 <title>Introduction to Systemd</title> 31 31 32 <para>Th e systemd package was installed as part of the LFS-Systemd. However not33 all components were installed due to dependencies that were unavailable.34 This procedure adds those missing components.</para>32 <para>This part contains instructions on how to build systemd package with 33 more features and why some features are required. 34 </para> 35 35 36 36 <!-- &lfs75_checked; --> 37 37 38 38 <bridgehead renderas="sect3">Package Information</bridgehead> 39 <warning> 40 <para> 41 It is important that you use the _same_ version of systemd as it was used in LFS build. 42 </para> 43 </warning> 44 39 45 <itemizedlist spacing="compact"> 40 46 <listitem> … … 64 70 <xref linkend="glib2"/>, 65 71 <xref linkend="gobject-introspection"/>, 66 <xref linkend="linux-pam"/>, and 67 <xref linkend="libgcrypt"/> 72 <xref linkend="linux-pam"/> 68 73 </para> 69 74 70 75 <bridgehead renderas="sect4">Optional Dependencies</bridgehead> 71 76 <para role="optional"> 77 <xref linkend="libgcrypt"/> (see note below), and 72 78 <xref linkend="gtk-doc"/> (to rebuild the documentation) 73 79 </para> … … 78 84 <xref linkend="usbutils"/> 79 85 </para> 86 87 <note> 88 <para> 89 Having the first two packages at build time results in: 90 91 libgudev-1.0.so in /usr/lib, /usr/include/gudev-1.0 directory, GUdev-1.0. 92 {typelib,gir} GObject-Introspection bindings in /usr/lib/girepository-1.0 93 and /usr/share/gir-1.0 respectively. 94 95 Since GLib2 has a dependency on Python, systemd Python bindings were also installed in: 96 97 /usr/lib/python2.7/site-packages/systemd 98 99 Having the Linux-PAM package at build time results in: 100 101 pam_systemd.so in /lib/security, a PAM module used to register logins/logouts with systemd-logind component. 102 103 This is required by anything that now requires ConsoleKit (desktops, mostly), as well as some other software. 104 </para> 105 </note> 80 106 81 107 <para condition="html" role="usernotes">User Notes: … … 143 169 144 170 <screen><userinput>make -k check</userinput></screen> 145 171 <note> 146 172 <para>For full test coverage, the test suite should be run 147 from a system booted using systemd.</para> 148 173 from a system booted using systemd. 174 </para> 175 </note> 176 <warning> 149 177 <para>Installing the package will override all systemd components installed in LFS, 150 so it is advised that the re-installation is done in a rescue mode with no programs except basic 151 systemd ones running. To enter rescue mode with systemd, issue this as the <systemitem class="username">root</systemitem> 152 from a VT console:</para> 153 178 so it is advised that the re-installation is done in a rescue mode with no programs except basic 179 systemd ones running. To enter rescue mode with systemd, issue this as the <systemitem class="username">root</systemitem> 180 from a VT console: 181 </para> 182 </warning> 154 183 <screen role="root"><userinput>systemctl start rescue.target</userinput></screen> 155 184 … … 168 197 <screen><userinput>rm -rfv /usr/lib/rpm</userinput></screen> 169 198 170 <para>Create the Sysvinit compatibility symlinks, so systemd is used171 as the default init system:</para>172 173 <screen><userinput>for tool in runlevel reboot shutdown poweroff halt telinit; do174 ln -sfv ../bin/systemctl /sbin/${tool}175 done176 ln -sfv ../lib/systemd/systemd /sbin/init</userinput></screen>177 178 199 <para>Remove a reference to a non-existent group:</para> 179 200 180 201 <screen><userinput>sed -i "s:0775 root lock:0755 root root:g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen> 181 202 203 <warning> 182 204 <para>WARNING do NOT run the systemd-machine-id-setup command again, 183 205 UUID was generated once and as its name says, … … 185 207 journald and who knows what else. 186 208 </para> 209 </warning> 210 211 <note> 212 <para>If libgcrypt was present at build time, make sure you move both libgpg-error and 213 libgcrypt versioned libraries to /lib so that they are 214 available in case of separate /usr by 215 issuing the following commands as the <systemitem class="username">root</systemitem> 216 user: 217 218 <screen role="root"><userinput>mv -v /usr/lib/libgcrypt.so.* /usr/lib/libgpg-error.so.* /lib 219 ln -sfv ../../lib/$(readlink /usr/lib/libgcrypt.so) /usr/lib/libgcrypt.so 220 ln -sfv ../../lib/$(readlink /usr/lib/libgpg-error.so) /usr/lib/libgpg-error.so</userinput></screen></para></note> 187 221 188 222 <para>If the pam_systemd.so PAM module was built, the system-sesion
Note:
See TracChangeset
for help on using the changeset viewer.