Changeset 4b7fe82
- Timestamp:
- 07/11/2014 05:57:26 AM (10 years ago)
- Branches:
- gnome
- Children:
- 0ea8be75
- Parents:
- ee80ba4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/systemd.xml
ree80ba4 r4b7fe82 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ 4 4 <!ENTITY % general-entities SYSTEM "../../general.ent"> 5 5 %general-entities; … … 9 9 <!ENTITY systemd-md5sum "eac4f9fc5bd18a0efc3fc20858baacf3"> 10 10 <!ENTITY systemd-size "2.7 MB"> 11 <!ENTITY systemd-buildsize " 97MB">12 <!ENTITY systemd-time "0. 4SBU">11 <!ENTITY systemd-buildsize "23 MB"> 12 <!ENTITY systemd-time "0.3 SBU"> 13 13 ]> 14 14 … … 16 16 <?dbhtml filename="systemd.html"?> 17 17 18 <sect1info>18 <sect1info> 19 19 <othername>$LastChangedBy$</othername> 20 20 <date>$Date$</date> … … 24 24 25 25 <indexterm zone="systemd"> 26 <primary sortas="a-systemd"> systemd</primary>27 </indexterm> 26 <primary sortas="a-systemd"></primary> 27 </indexterm> 28 28 29 29 <sect2 role="package"> 30 <title>Introduction to Systemd</title>31 32 <para>This part contains instructions on how to build systemd package with 30 <title>Introduction to Systemd</title> 31 32 <para>This part contains instructions on how to build systemd package with 33 33 more features and why some features are required. 34 34 </para> 35 35 36 <!-- &lfs75_checked; -->36 &lfs75_checked; 37 37 38 38 <bridgehead renderas="sect3">Package Information</bridgehead> 39 39 <warning> 40 40 <para> 41 It is important that you use the _same_ version of systemd as it was used in LFS build. 41 It is important that you use the _same_ version of systemd as it was used in LFS build. 42 42 </para> 43 </warning> 44 43 </warning> 45 44 <itemizedlist spacing="compact"> 46 45 <listitem> … … 64 63 </itemizedlist> 65 64 66 <bridgehead renderas="sect3">Systemd Dependencies</bridgehead>65 <bridgehead renderas="sect3">Systemd Dependencies</bridgehead> 67 66 68 67 <bridgehead renderas="sect4">Required</bridgehead> 69 68 <para role="required"> 70 69 <xref linkend="glib2"/>, 71 <xref linkend="gobject-introspection"/>, 70 <xref linkend="gobject-introspection"/>, and 72 71 <xref linkend="linux-pam"/> 73 72 </para> … … 75 74 <bridgehead renderas="sect4">Optional Dependencies</bridgehead> 76 75 <para role="optional"> 77 <xref linkend="libgcrypt"/> (see note below), and 78 <xref linkend="gtk-doc"/> (to rebuild the documentation) 76 <xref linkend="libgcrypt"/> (see note below) 77 </para> 78 79 <bridgehead renderas="sect4">Optional for rebuilding manual pages</bridgehead> 80 <para role="optional"> 81 <xref linkend="libxslt"/>, 82 <xref linkend="DocBook"/>, 83 <xref linkend="docbook-xsl"/>, and 84 <xref linkend="gtk-doc"/> (for rebuilding UDev API docs) 79 85 </para> 80 86 … … 90 96 91 97 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 98 {typelib,gir} GObject-Introspection bindings in /usr/lib/girepository-1.0 93 99 and /usr/share/gir-1.0 respectively. 94 100 … … 100 106 101 107 pam_systemd.so in /lib/security, a PAM module used to register logins/logouts with systemd-logind component. 102 108 103 109 This is required by anything that now requires ConsoleKit (desktops, mostly), as well as some other software. 104 110 </para> … … 111 117 112 118 <sect2 role="installation"> 113 <title>Installation of systemd</title> 114 115 <para>fix a build error when using Util-Linux built in 116 LFS-Systemd</para> 117 118 <screen><userinput>sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen> 119 120 <para>Apply a patch so that compat <command>pkg-config</command> files get 121 installed without installing compat libs which are useless on LFS:</para> 122 123 <screen><userinput>patch -Np1 -i ../systemd-&systemd-version;-compat-1.patch</userinput></screen> 124 125 <para>Prepare systemd for compilation:</para> 126 127 <screen><userinput> 119 <title>Installation of Systemd</title> 120 121 <para>First, re-build systemd:</para> 122 123 <screen><userinput>sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h") && 124 patch -Np1 -i ../systemd-&systemd-version;-compat-patch; && 125 128 126 ./configure --prefix=/usr \ 129 127 --sysconfdir=/etc \ … … 132 130 --with-rootlibdir=/lib \ 133 131 --enable-split-usr \ 134 --docdir=/usr/share/doc/systemd-&systemd-version;</userinput></screen> 135 136 <variablelist> 137 <title>The meaning of the configure options:</title> 138 139 <varlistentry> 140 <term><parameter>--with-root*</parameter></term> 141 <listitem> 142 <para>These switches ensure that core programs and 143 shared libraries are installed in the subdirectories 144 of the root partition.</para> 145 </listitem> 146 </varlistentry> 147 148 <varlistentry> 149 <term><parameter>--enable-split-usr</parameter></term> 150 <listitem> 151 <para>This switch ensures that systemd will work on 152 systems where /bin, /lib and /sbin directories are not 153 symlinks to their /usr counterparts.</para> 154 </listitem> 155 </varlistentry> 156 157 </variablelist> 158 159 <para>Compile the package:</para> 160 161 <screen><userinput>make</userinput></screen> 162 163 <para>First prevent few broken test cases from running:</para> 164 165 <screen><userinput>sed -e "s:test/udev-test.pl::g" 166 -i Makefile</userinput></screen> 167 168 <para>To test the results, issue:</para> 169 170 <screen><userinput>make -k check</userinput></screen> 171 <note> 132 --docdir=/usr/share/doc/systemd-&systemd-version; && 133 134 make</userinput></screen> 135 136 <para>First prevent a few broken test cases from being run:</para> 137 138 <screen><userinput>sed -i s:test/udev-test.pl::g Makefile</userinput></screen> 139 140 <note> 172 141 <para>For full test coverage, the test suite should be run 173 142 from a system booted using systemd. 174 143 </para> 175 144 </note> 145 146 <para>To test the results, issue: <command>make -k check</command>.</para> 147 176 148 <warning> 177 <para>Installing the package will override all systemd components installed in LFS, 178 so it is advised that the re-installation is done in a rescue mode with no programs except basic 149 <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 179 151 systemd ones running. To enter rescue mode with systemd, issue this as the <systemitem class="username">root</systemitem> 180 152 from a VT console: 181 153 </para> 182 154 </warning> 155 183 156 <screen role="root"><userinput>systemctl start rescue.target</userinput></screen> 184 157 185 <para>Install the package as the <systemitem class="username">root</systemitem>158 <para>Now re-install as the <systemitem class="username">root</systemitem> 186 159 user:</para> 187 160 188 161 <screen role="root"><userinput>make install</userinput></screen> 189 162 190 <para>Move NSS myhostname library to<filename 191 class="directory">/lib</filename>:</para> 192 193 <screen><userinput>mv -v /usr/lib/libnss_myhostname.so.2 /lib</userinput></screen> 194 195 <para>Remove an unnecessary directory:</para> 196 197 <screen><userinput>rm -rfv /usr/lib/rpm</userinput></screen> 198 199 <para>Remove a reference to a non-existent group:</para> 200 201 <screen><userinput>sed -i "s:0775 root lock:0755 root root:g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen> 163 <para>Move NSS myhostname library to <filename class="directory">/lib</filename> 164 as the <systemitem class="username">root</systemitem> user:</para> 165 166 <screen role="root"><userinput>mv -v /usr/lib/libnss_myhostname.so.2 /lib</userinput></screen> 167 168 <para>Remove an unnecessary directory as the as the <systemitem class="username">root</systemitem> user:</para> 169 170 <screen role="root"><userinput>rm -rfv /usr/lib/rpm</userinput></screen> 171 172 <para>Remove a reference to a non-existent group as the <systemitem class="username">root</systemitem> user:</para> 173 174 <screen role="root"><userinput>sed -i "s:0775 root lock:0755 root root:g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen> 175 176 <note> 177 <para> If libxslt was present, the man pages were also installed by make install. 178 If not, the old man pages will remain and there's no need to reinstall 179 them since the same version of systemd was used. The same goes for the sysv compatibility links. 180 </para> 181 </note> 202 182 203 183 <warning> 204 <para>WARNING do NOT run the systemd-machine-id-setup command again, 205 UUID was generated once and as its name says, 206 it should be unique. Generating a new one might result in broken logs from 184 <para>WARNING do NOT run the systemd-machine-id-setup command again, 185 UUID was generated once and as its name says, 186 it should be unique. Generating a new one might result in broken logs from 207 187 journald and who knows what else. 208 188 </para> … … 210 190 211 191 <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 192 <para>If libgcrypt was present at build time, make sure you move both libgpg-error and 193 libgcrypt versioned libraries to /lib so that they are 214 194 available in case of separate /usr by 215 195 issuing the following commands as the <systemitem class="username">root</systemitem> 216 user:196 user: 217 197 218 198 <screen role="root"><userinput>mv -v /usr/lib/libgcrypt.so.* /usr/lib/libgpg-error.so.* /lib 219 199 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> 221 222 <para>If the pam_systemd.so PAM module was built, the system-sesion223 PAM file needs to be modified and a new file needs to be created in order 200 ln -sfv ../../lib/$(readlink /usr/lib/libgpg-error.so) /usr/lib/libgpg-error.so</userinput></screen></para></note> 201 202 <para>If the pam_systemd.so PAM module was built, the system-sesion 203 PAM file needs to be modified and a new file needs to be created in order 224 204 for systemd-logind to work correctly. Create the configuration file by 225 205 issuing the following commands as the <systemitem class="username">root</systemitem> 226 206 user: 227 207 </para> 228 229 208 <screen role="root"><userinput> 230 209 231 210 cat > /etc/pam.d/system-session << "EOF" 232 211 # Begin Systemd addition 233 212 234 213 session optional pam_loginuid.so 235 214 session optional pam_systemd.so … … 253 232 EOF</userinput></screen> 254 233 255 <para>At this point it would be a nice idea to reboot, or rather restart the 234 <para>At this point it would be a nice idea to reboot, or rather restart the 256 235 systemd components in case of new dependencies as the <systemitem class="username">root</systemitem> 257 236 user:</para> 258 237 259 <screen role="root"><userinput>systemctl daemon-reexec 238 <screen role="root"><userinput>systemctl daemon-reexec && 260 239 systemctl restart systemd-logind systemd-journald systemd-udevd</userinput></screen> 261 262 240 </sect2> 241 242 <sect2 role="commands"> 243 <title>Command Explanations</title> 244 245 <para> 246 <parameter>--with-root*</parameter>: These switches ensure that core programs and 247 shared libraries are installed in the subdirectories 248 of the root partition. 249 </para> 250 251 <para> 252 <parameter>--enable-split-usr</parameter>: This switch ensures that systemd will work on 253 systems where /bin, /lib and /sbin directories are not 254 symlinks to their /usr counterparts. 255 </para> 256 257 </sect2> 263 258 264 259 <sect2 role="content"> 265 260 <title>Contents</title> 266 <para> 261 262 <para> 267 263 A list of the installed files, along with their short descriptions can be 268 264 found at <ulink url="http://www.linuxfromscratch.org/lfs/view/&lfs-version;/chapter06/systemd.html#contents-systemd"/>. 269 </para> 270 265 </para> 271 266 </sect2> 272 267 -
gnome/platform/gdm.xml
ree80ba4 r4b7fe82 77 77 <para role="required"> 78 78 <xref linkend="accountsservice"/>, 79 <xref linkend="fontconfig"/>,80 79 <xref linkend="libcanberra"/>, 81 80 <xref linkend="dbus-glib"/>, 82 <xref linkend="glib2"/>, 83 <xref linkend="gtk3"/>, and 84 <xref linkend="nss"/> 81 <xref linkend="glib2"/>, and 82 <xref linkend="gtk3"/> 85 83 </para> 86 84 <bridgehead renderas="sect4">Recommended</bridgehead> -
introduction/welcome/changelog.xml
ree80ba4 r4b7fe82 110 110 <listitem> 111 111 <para>[cjg] - Updated dependencies for uhttpmock.</para> 112 </listitem> 113 <listitem> 114 <para>[cjg] - Re-wrote systemd page to blfs style.</para> 112 115 </listitem> 113 116 </itemizedlist>
Note:
See TracChangeset
for help on using the changeset viewer.