Changeset d4bf650a for postlfs/config


Ignore:
Timestamp:
03/08/2008 04:20:33 AM (16 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
feb9edf
Parents:
1ad30c22
Message:

Udated to autofs-5.0.3. Expanded explanation of the use of autofs and created a procedure to automatically downlaod and apply all paatches.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7215 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/autofs.xml

    r1ad30c22 rd4bf650a  
    44  <!ENTITY % general-entities SYSTEM "../../general.ent">
    55  %general-entities;
    6 
    7     <!-- Inserted as a reminder to do this. The mention of a test suite
    8          is usually right before the root user installation commands. Please
    9          delete these 12 (including one blank) lines after you are done.-->
    10 
    11     <!-- Use one of the two mentions below about a test suite,
    12          delete the line that is not applicable. Of course, if the
    13          test suite uses syntax other than "make check", revise the
    14          line to reflect the actual syntax to run the test suite -->
    15 
    16     <!-- <para>This package does not come with a test suite.</para> -->
    17     <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
    18 
    19   <!ENTITY autofs-patch-dir     "http://ftp.kernel.org/pub/linux/daemons/autofs/v4/">
    20   <!ENTITY autofs-download-http "http://ftp.kernel.org/pub/linux/daemons/autofs/v4/autofs-&autofs-version;.tar.bz2">
    21   <!ENTITY autofs-download-ftp "ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/autofs-&autofs-version;.tar.bz2">
    22   <!ENTITY autofs-md5sum        "7e3949114c00665b4636f0c318179657">
    23   <!ENTITY autofs-size          "168 KB">
    24   <!ENTITY autofs-buildsize     "2.3 MB">
     6  <!ENTITY autofs-patch-dir     "http://ftp.kernel.org/pub/linux/daemons/autofs/v5">
     7  <!ENTITY autofs-download-http "http://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.bz2">
     8  <!ENTITY autofs-download-ftp "ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.bz2">
     9  <!ENTITY autofs-md5sum        "27839fe6fa8105b2b7d31bc922fd7cf6">
     10  <!ENTITY autofs-size          "221 KB">
     11  <!ENTITY autofs-buildsize     "8.9 MB">
    2512  <!ENTITY autofs-time          "less than 0.1 SBU">
    2613]>
     
    4532    <para>The <application>autofs</application> package contains userspace
    4633    tools that work with the kernel to mount and un-mount removable file
    47     systems. This is useful for allowing users to mount floppies, cdroms and
     34    systems. The primary use is to mount external network file systems like
     35    nfs (see <xref linkend="nfs-utils"/>) or Samba (see <xref linkend="samba3"/>)
     36    on demand.</para>
     37   
     38    <para>It may also be useful for allowing users to mount floppies, cdroms and
    4839    other removable storage devices without requiring the system
    49     administrator to mount the devices.  This may not be ideal for all
     40    administrator to mount the devices although this capability is now generally
     41    provided by HAL (see <xref linkend="hal"/>).  This may not be ideal for all
    5042    installations, so be aware of the risks before implementing this feature.</para>
    5143
     
    7365
    7466    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    75     <itemizedlist spacing="compact">
    76       <listitem>
    77         <para>Recommended Patch: <ulink
    78         url="&patch-root;/autofs-&autofs-version;-consolidated-1.patch"/></para>
    79       </listitem>
    80     </itemizedlist>
    81 
     67        <para>Recommended Patches: There are frequent patches issued
     68        for <application>autofs</application>.  To get the current patches,
     69        start in the same directory as the main tar file and run:</para>
     70       
     71<screen><userinput>wget &autofs-patch-dir;/patch_order-&autofs-version; &amp;&amp;
     72sed 's;autofs;&autofs-patch-dir;/autofs;' patch_order-&autofs-version; &gt; wget-list &amp;&amp;
     73wget -i wget-list</userinput></screen>
     74   
    8275    <para condition="html" role="usernotes">User Notes:
    8376    <ulink url="&blfs-wiki;/autofs"/></para>
     
    112105    commands:</para>
    113106
    114 <screen><userinput>patch -Np1 -i ../autofs-&autofs-version;-consolidated-1.patch &amp;&amp;
     107<screen><userinput>for f in `cat ../patch_order-&autofs-version;`; do
     108  patch -Np1 -i ../$f
     109done &amp;&amp;
    115110./configure --prefix=/ --mandir=/usr/share/man &amp;&amp;
    116111make</userinput></screen>
    117112
     113    <para>This package does not come with a test suite.</para>
     114
    118115    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    119116
    120117<screen role="root"><userinput>make install &amp;&amp;
    121 rm /etc/rc.d/init.d/autofs</userinput></screen>
     118ln -sf  ../init.d/autofs $(EXTDIR)/rc.d/rcsysinit.d/S52autofs</userinput></screen>
    122119
    123120  </sect2>
     
    126123    <title>Command Explanations</title>
    127124
    128     <para><command>patch -Np1 -i
    129     ../autofs-&autofs-version;-consolidated-1.patch</command>: This patch
    130     is a consolidation of nine small patches available at <ulink
    131     url="http://ftp.kernel.org/pub/linux/daemons/autofs/v4/"/>.  The patches
    132     can be applied individually if desired.</para>
    133 
    134     <para><command>rm /etc/rc.d/init.d/autofs</command>: This command removes
    135     the installed script which only works on specific distributions.</para>
     125    <para><command>for f in `cat ../patch_order-&autofs-version;`; do
     126      patch -Np1 -i ../$f;  done</command>: This command applies all the
     127      patches fetched earlier in the correct order.</para>
     128
     129    <para><command>ln -sf  ../init.d/autofs
     130    $(EXTDIR)/rc.d/rcsysinit.d/S52autofs</command>: This command sets the
     131    link to properly start autofs upon boot.</para>
    136132
    137133  </sect2>
     
    170166
    171167      <para>The installation process creates <filename>auto.master</filename>,
    172       <filename>auto.misc</filename> and <filename>auto.net</filename>. You
    173       will replace the <filename>auto.master</filename> with the following
    174       commands:</para>
     168      <filename>auto.misc</filename>,  <filename>auto.smb</filename>, and
     169      <filename>auto.net</filename>. You will replace the
     170      <filename>auto.master</filename> with the following commands:</para>
    175171
    176172<screen role="root"><userinput>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
     
    178174<literal># Begin /etc/auto.master
    179175
    180 /media  /etc/auto.misc
     176/media/cdrom  /etc/auto.misc
    181177
    182178# End /etc/auto.master</literal>
     
    184180
    185181      <note>
    186         <para>This file mounts a new media directory over the one created by
    187         LFS and will therefore hide any mounts made by the
    188         <filename>fstab</filename> file into that directory.</para>
     182
     183        <para>This file mounts a new media directory but is not visible until
     184        it is automounted by autofs.  An alternative method would be to
     185        automount into another location such as
     186        <filename>/var/lib/autofs/cdrom</filename> and create a sysbolic
     187        link from <filename>/media/cdrom</filename> to the other
     188        location.</para>
     189     
    189190      </note>
    190191
     
    201202
    202203    </sect3>
    203 
     204<!--
    204205    <sect3  id="autofs-init">
    205206      <title>Boot Script</title>
     
    223224
    224225    </sect3>
    225 
     226-->
    226227  </sect2>
    227228
     
    236237      <seglistitem>
    237238        <seg>automount</seg>
    238         <seg>autofs modules</seg>
     239        <seg>lookup_file.so, lookup_hosts.so, lookup_multi.so,
     240        lookup_nisplus.so, lookup_program.so, lookup_userhome.so,
     241        lookup_yp.so, mount_afs.so, mount_autofs.so, mount_bind.so,
     242        mount_changer.so, mount_ext2.so, mount_generic.so,
     243        mount_nfs.so, parse_sun.so</seg>
    239244        <seg>/lib/autofs and /var/run/autofs</seg>
    240245      </seglistitem>
Note: See TracChangeset for help on using the changeset viewer.