Changeset 216be86 for BOOK/final-system
- Timestamp:
- Apr 24, 2017, 10:21:28 AM (8 years ago)
- Branches:
- master, systemd
- Children:
- 0fa3c9f
- Parents:
- c831ac4
- Location:
- BOOK/final-system
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/systemd.xml
rc831ac4 r216be86 25 25 <title>Installation of Systemd</title> 26 26 27 <para os="p1">Systemd 209 merged several libraries into28 <filename class="libraryfile">libsystemd</filename>, but some packages29 that use systemd still expect those separate libraries. Apply a patch30 to allow backwards compatibility with these packages by31 installing Pkg-config files for the old libraries:</para>32 33 <screen os="p2"><userinput>patch -Np1 -i ../&systemd-compat-patch;</userinput></screen>34 35 27 <para os="s1">Prevent the <filename>Makefile</filename> from trying to run 36 28 <command>setcap</command> on <command>systemd-detect-virt</command>, … … 46 38 <screen os="s4"><userinput>sed -i '/timesyncd.conf/d' src/timesync/timesyncd.conf.in</userinput></screen> 47 39 48 <para os="s5">By default, <command>systemd-fsck</command> will run49 <filename>/sbin/fsck</filename> with the <option>-l</option> option, which50 applies an <function>flock</function> on the file system being checked.51 This can conflict with an <function>flock</function> that52 systemd itself puts on the file system, which could result in problems53 booting. <command>fsck</command> will be fixed to avoid this problem in a54 future release of Util-linux, but for now we will work around the issue by55 simply preventing <command>systemd-fsck</command> from using <option>-l</option>:</para>56 57 <screen os="s6"><userinput>sed -i '/-l/d' src/fsck/fsck.c</userinput></screen>58 59 40 <para os="a">Prepare systemd for compilation:</para> 41 42 <para os="cc1">Create a file to declare some variables</para> 43 44 <screen os="cc2"><userinput>cat > config.cache << "EOF" 45 KILL="/bin/kill" 46 MOUNT_PATH="/bin/mount" 47 UMOUNT_PATH="/bin/umount" 48 SULOGIN="/sbin/sulogin" 49 XSLTPROC="/usr/bin/xsltproc" 50 EOF</userinput></screen> 60 51 61 52 <screen os="b"><userinput>./configure \ … … 68 59 --with-rootlibdir=/lib \ 69 60 --enable-split-usr \ 70 --disable-gudev \ 61 --disable-firstboot \ 62 --disable-ldconfig \ 63 --disable-lto \ 64 --disable-sysusers \ 65 --with-default-dnssec=no \ 71 66 --with-kbd-loadkeys=/bin/loadkeys \ 72 67 --with-kbd-setfont=/bin/setfont \ 73 68 --with-dbuspolicydir=/etc/dbus-1/system.d \ 74 --with-dbusinterfacedir=/usr/share/dbus-1/interfaces \75 69 --with-dbussessionservicedir=/usr/share/dbus-1/services \ 76 70 --with-dbussystemservicedir=/usr/share/dbus-1/system-services \ 77 cc_cv_CFLAGS__flto=no</userinput></screen>71 --config-cache</userinput></screen> 78 72 79 73 <variablelist os="c"> 80 74 <title>The meaning of the configure options:</title> 75 76 <varlistentry> 77 <term><parameter>--config-cache</parameter></term> 78 <listitem> 79 <para>Use the created <filename>config.cache</filename>.</para> 80 </listitem> 81 </varlistentry> 81 82 82 83 <varlistentry> … … 99 100 100 101 <varlistentry> 101 <term><parameter>--disable-gudev</parameter></term> 102 <listitem> 103 <para>This switch prevents systemd from building 104 <filename class="libraryfile">libgudev</filename> as it requires 105 Glib, which is not installed in CLFS.</para> 102 <term><parameter>--disable-firstboot</parameter></term> 103 <listitem> 104 <para>This switch prevents installation of systemd services 105 responsible for setting up the system for the first time. 106 They are not useful for CLFS as everything is done manually. 107 </para> 108 </listitem> 109 </varlistentry> 110 111 <varlistentry> 112 <term><parameter>--disable-ldconfig</parameter></term> 113 <listitem> 114 <para>This switch prevents installation of a systemd unit that runs 115 <command>ldconfig</command> at boot, and increases boot time. 116 While it may be not useful for source distributions like CLFS, 117 this option may be removed.</para> 118 </listitem> 119 </varlistentry> 120 121 <varlistentry> 122 <term><parameter>--disable-lto</parameter></term> 123 <listitem> 124 <para>This prevents the build system from using GCC's Link-time 125 optimization (LTO), to ensure that systemd's binaries will not try 126 to link to <filename class="libraryfile">libgcc_s</filename></para> 127 </listitem> 128 </varlistentry> 129 130 <varlistentry> 131 <term><parameter>--disable-sysusers</parameter></term> 132 <listitem> 133 <para>This switch prevents install of systemd services which setup 134 the previously created <filename>/etc/group</filename> and 135 <filename>/etc/passwd</filename> files.</para> 106 136 </listitem> 107 137 </varlistentry> … … 116 146 117 147 <varlistentry> 118 <term><parameter>cc_cv_CFLAGS__flto=no</parameter></term> 119 <listitem> 120 <para>This prevents the build system from using GCC's Link-time 121 optimization (LTO), to ensure that systemd's binaries will not try 122 to link to <filename class="libraryfile">libgcc_s</filename>.</para> 148 <term><parameter>--with-default-dnssec=no</parameter></term> 149 <listitem> 150 <para>This switch turns off the experimental DNNSEC support.</para> 123 151 </listitem> 124 152 </varlistentry> … … 132 160 <para os="f">Prevent a broken test case from running:</para> 133 161 134 <screen os="g"><userinput remap="test">sed -e "s:test/udev-test.pl::g"\135 -e "s:test-bus-cleanup\$(EXEEXT) ::g"\136 -e "s:test-bus-gvariant\$(EXEEXT) ::g" \137 -i Makefile</userinput></screen>162 <screen os="g"><userinput remap="test">sed -e 's@test/udev-test.pl @@' \ 163 -e 's@test-copy$(EXEEXT) @@' \ 164 -i Makefile.in 165 </userinput></screen> 138 166 139 167 <para os="h">To test the results, issue:</para> 140 168 141 <screen os="i"><userinput remap="test">make check</userinput></screen> 169 <screen os="i"><userinput remap="test"> 170 sed -i "s:minix:ext4:g" src/test/test-path-util.c 171 make check</userinput></screen> 142 172 143 173 <para os="j">Install the package:</para> … … 148 178 149 179 <screen os="m"><userinput>install -v -m644 man/*.html /usr/share/doc/systemd-&systemd-version;</userinput></screen> 150 151 <para os="n">Move the152 <filename class="libraryfile">nss_myhostname</filename> library to153 <filename class="directory">/lib</filename>:</para>154 155 <screen os="o"><userinput>mv -v /usr/lib/libnss_myhostname.so.2 /lib</userinput></screen>156 180 157 181 <para os="p">Remove an unnecessary directory:</para> … … 165 189 done 166 190 ln -sfv ../lib/systemd/systemd /sbin/init</userinput></screen> 167 168 <para os="t">Modify a configuration file which references a group that169 doesn't exist:</para>170 171 <screen os="u"><userinput>sed -i "s@root lock@root root@g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen>172 191 173 192 </sect2> -
BOOK/final-system/multilib/systemd-64bit.xml
rc831ac4 r216be86 23 23 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 24 24 href="../common/systemd.xml" 25 xpointer="xpointer(//*[@os='p1'])"/>26 27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"28 href="../common/systemd.xml"29 xpointer="xpointer(//*[@os='p2'])"/>30 31 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"32 href="../common/systemd.xml"33 25 xpointer="xpointer(//*[@os='s1'])"/> 34 26 … … 47 39 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 48 40 href="../common/systemd.xml" 49 xpointer="xpointer(//*[@os=' s5'])"/>41 xpointer="xpointer(//*[@os='cc1'])"/> 50 42 51 43 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 52 44 href="../common/systemd.xml" 53 xpointer="xpointer(//*[@os=' s6'])"/>45 xpointer="xpointer(//*[@os='cc2'])"/> 54 46 55 47 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" … … 62 54 --sysconfdir=/etc \ 63 55 --localstatedir=/var \ 64 --libdir=/usr/lib64 \65 56 --libexecdir=/usr/lib64 \ 66 57 --docdir=/usr/share/doc/systemd-&systemd-version; \ … … 68 59 --with-rootlibdir=/lib64 \ 69 60 --enable-split-usr \ 70 --disable-gudev \ 61 --disable-firstboot \ 62 --disable-ldconfig \ 63 --disable-lto \ 64 --disable-sysusers \ 65 --with-default-dnssec=no \ 71 66 --with-kbd-loadkeys=/bin/loadkeys \ 72 67 --with-kbd-setfont=/bin/setfont \ 73 68 --with-dbuspolicydir=/etc/dbus-1/system.d \ 74 --with-dbusinterfacedir=/usr/share/dbus-1/interfaces \75 69 --with-dbussessionservicedir=/usr/share/dbus-1/services \ 76 70 --with-dbussystemservicedir=/usr/share/dbus-1/system-services \ 77 cc_cv_CFLAGS__flto=no</userinput></screen>71 --config-cache</userinput></screen> 78 72 79 73 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" … … 123 117 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 124 118 href="../common/systemd.xml" 125 xpointer="xpointer(//*[@os='n'])"/>126 127 <screen><userinput>mv -v /usr/lib64/libnss_myhostname.so.2 /lib64</userinput></screen>128 129 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"130 href="../common/systemd.xml"131 119 xpointer="xpointer(//*[@os='p'])"/> 132 120 … … 143 131 xpointer="xpointer(//*[@os='s'])"/> 144 132 145 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"146 href="../common/systemd.xml"147 xpointer="xpointer(//*[@os='t'])"/>148 149 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"150 href="../common/systemd.xml"151 xpointer="xpointer(//*[@os='u'])"/>152 153 133 </sect2> 154 134 -
BOOK/final-system/multilib/systemd-n32.xml
rc831ac4 r216be86 23 23 24 24 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 25 href=" systemd.xml"26 xpointer="xpointer(//*[@os=' mlw1'])"/>25 href="../common/systemd.xml" 26 xpointer="xpointer(//*[@os='cc1'])"/> 27 27 28 28 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 29 29 href="../common/systemd.xml" 30 xpointer="xpointer(//*[@os=' p1'])"/>30 xpointer="xpointer(//*[@os='cc2'])"/> 31 31 32 32 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 33 33 href="../common/systemd.xml" 34 xpointer="xpointer(//*[@os='p2'])"/>35 36 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"37 href="systemd.xml"38 34 xpointer="xpointer(//*[@os='a'])"/> 39 35 40 <screen ><userinput>CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \36 <screen os="b"><userinput>CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ 41 37 ./configure \ 42 38 --prefix=/usr \ 43 39 --sysconfdir=/etc \ 44 40 --localstatedir=/var \ 45 --libdir=/usr/lib32 \46 41 --libexecdir=/usr/lib32 \ 47 42 --docdir=/usr/share/doc/systemd-&systemd-version; \ … … 49 44 --with-rootlibdir=/lib32 \ 50 45 --enable-split-usr \ 51 --disable-gudev \ 46 --disable-firstboot \ 47 --disable-ldconfig \ 48 --disable-lto \ 49 --disable-sysusers \ 50 --with-default-dnssec=no \ 52 51 --with-kbd-loadkeys=/bin/loadkeys \ 53 52 --with-kbd-setfont=/bin/setfont \ 54 53 --with-dbuspolicydir=/etc/dbus-1/system.d \ 55 --with-dbusinterfacedir=/usr/share/dbus-1/interfaces \56 54 --with-dbussessionservicedir=/usr/share/dbus-1/services \ 57 55 --with-dbussystemservicedir=/usr/share/dbus-1/system-services \ 58 cc_cv_CFLAGS__flto=no</userinput></screen>56 --config-cache</userinput></screen> 59 57 60 58 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" … … 74 72 xpointer="xpointer(//*[@os='k'])"/> 75 73 76 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"77 href="../common/systemd.xml"78 xpointer="xpointer(//*[@os='n'])"/>79 80 <screen><userinput>mv -v /usr/lib32/libnss_myhostname.so.2 /lib32</userinput></screen>81 82 74 </sect2> 83 75 -
BOOK/final-system/multilib/systemd.xml
rc831ac4 r216be86 22 22 <sect2 role="installation"> 23 23 <title>Installation of Systemd</title> 24 25 <note os="mlw1">26 <para>If you do not have Linux-PAM installed in your system you can safely27 skip this page. If you do have Linux-PAM installed and you wish to use28 <filename class="libraryfile">pam_systemd.so</filename>29 to register and control user sessions within the systemd control group30 hierarchy, follow the instructions to install the module.</para>31 </note>32 33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"34 href="../common/systemd.xml"35 xpointer="xpointer(//*[@os='p1'])"/>36 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"38 href="../common/systemd.xml"39 xpointer="xpointer(//*[@os='p2'])"/>40 24 41 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" … … 76 60 make install-pkgconfiglibDATA</userinput></screen> 77 61 78 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"79 href="../common/systemd.xml"80 xpointer="xpointer(//*[@os='n'])"/>81 82 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"83 href="../common/systemd.xml"84 xpointer="xpointer(//*[@os='o'])"/>85 86 62 </sect2> 87 63
Note:
See TracChangeset
for help on using the changeset viewer.