|
@@ -34,16 +34,28 @@
|
|
|
<primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary>
|
|
|
</indexterm>
|
|
|
|
|
|
- <para>Some programs use hard-wired paths to programs which do not exist yet. In
|
|
|
- order to satisfy these programs, create a number of symbolic links which will be
|
|
|
- replaced by real files throughout the course of this chapter after the software
|
|
|
- has been installed:</para>
|
|
|
+ <para>Some programs use hard-wired paths to programs which do not exist yet.
|
|
|
+ In order to satisfy these programs, create a number of symbolic links which
|
|
|
+ will be replaced by real files throughout the course of this chapter after the
|
|
|
+ software has been installed:</para>
|
|
|
|
|
|
-<screen><userinput>ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin
|
|
|
-ln -sv /tools/bin/perl /usr/bin
|
|
|
+<screen revision="sysv"><userinput>ln -sv /tools/bin/{bash,cat,dd,echo,ln,pwd,rm,stty} /bin
|
|
|
+ln -sv /tools/bin/{install,perl} /usr/bin
|
|
|
ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib
|
|
|
ln -sv /tools/lib/libstdc++.{a,so{,.6}} /usr/lib
|
|
|
sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la
|
|
|
+ln -sv bash /bin/sh</userinput></screen>
|
|
|
+
|
|
|
+<screen revision="systemd"><userinput>ln -sv /tools/bin/{bash,cat,dd,echo,ln,pwd,rm,stty} /bin
|
|
|
+ln -sv /tools/bin/{install,perl} /usr/bin
|
|
|
+ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib
|
|
|
+ln -sv /tools/lib/libstdc++.{a,so{,.6}} /usr/lib
|
|
|
+sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la
|
|
|
+for lib in blkid lzma mount uuid
|
|
|
+do
|
|
|
+ ln -sv /tools/lib/lib$lib.{a,so*} /usr/lib
|
|
|
+ sed 's/tools/usr/' /tools/lib/lib${lib}.la > /usr/lib/lib${lib}.la
|
|
|
+done
|
|
|
ln -sv bash /bin/sh</userinput></screen>
|
|
|
|
|
|
<variablelist>
|
|
@@ -64,6 +76,14 @@ ln -sv bash /bin/sh</userinput></screen>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
|
+ <varlistentry>
|
|
|
+ <term><parameter><filename>/bin/dd</filename></parameter></term>
|
|
|
+ <listitem>
|
|
|
+ <para>The path to <filename>dd</filename> will be hard-coded into the
|
|
|
+ <filename>/usr/bin/libtool</filename> utility.</para>
|
|
|
+ </listitem>
|
|
|
+ </varlistentry>
|
|
|
+
|
|
|
<varlistentry>
|
|
|
<term><parameter><filename>/bin/echo</filename></parameter></term>
|
|
|
<listitem>
|
|
@@ -72,6 +92,23 @@ ln -sv bash /bin/sh</userinput></screen>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
|
+ <varlistentry>
|
|
|
+ <term><parameter><filename>/usr/bin/install</filename></parameter></term>
|
|
|
+ <listitem>
|
|
|
+ <para>The path to <filename>install</filename> will be hard-coded into
|
|
|
+ the <filename>/usr/lib/bash/Makefile.inc</filename> file.</para>
|
|
|
+ </listitem>
|
|
|
+ </varlistentry>
|
|
|
+
|
|
|
+ <varlistentry>
|
|
|
+ <term><parameter><filename>/bin/ln</filename></parameter></term>
|
|
|
+ <listitem>
|
|
|
+ <para>The path to <filename>ln</filename> will be hard-coded into the
|
|
|
+ <filename>/usr/lib/perl5/&perl-version;/<target-triplet>/Config_heavy.pl</filename>
|
|
|
+ file.</para>
|
|
|
+ </listitem>
|
|
|
+ </varlistentry>
|
|
|
+
|
|
|
<varlistentry>
|
|
|
<term><parameter><filename>/bin/pwd</filename></parameter></term>
|
|
|
<listitem>
|
|
@@ -80,6 +117,15 @@ ln -sv bash /bin/sh</userinput></screen>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
|
+ <varlistentry>
|
|
|
+ <term><parameter><filename>/bin/rm</filename></parameter></term>
|
|
|
+ <listitem>
|
|
|
+ <para>The path to <filename>rm</filename> will be hard-coded into the
|
|
|
+ <filename>/usr/lib/perl5/&perl-version;/<target-triplet>/Config_heavy.pl</filename>
|
|
|
+ file.</para>
|
|
|
+ </listitem>
|
|
|
+ </varlistentry>
|
|
|
+
|
|
|
<varlistentry>
|
|
|
<term><parameter><filename>/bin/stty</filename></parameter></term>
|
|
|
<listitem>
|
|
@@ -120,6 +166,15 @@ ln -sv bash /bin/sh</userinput></screen>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
|
+ <varlistentry revision="systemd">
|
|
|
+ <term><parameter><filename>/usr/lib/lib{blkid,lzma,mount,uuid}.{a,la,so*}</filename></parameter></term>
|
|
|
+ <listitem>
|
|
|
+ <para>These links prevent systemd utilties from being poluted with an
|
|
|
+ unnecessary reference to the
|
|
|
+ <filename class="directory">/tools</filename> directory.</para>
|
|
|
+ </listitem>
|
|
|
+ </varlistentry>
|
|
|
+
|
|
|
<varlistentry>
|
|
|
<term><parameter><filename>/bin/sh</filename></parameter></term>
|
|
|
<listitem>
|