Changeset 3496df9 for general


Ignore:
Timestamp:
12/22/2007 07:15:43 AM (16 years ago)
Author:
Alexander E. Patrakov <alexander@…>
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:
d10ebccc
Parents:
f2775848
Message:

Improved wording on HAL page, following suggestions from Archaic.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/hal.xml

    rf2775848 r3496df9  
    245245
    246246    <sect3><title>Configuration Information</title>
     247    <sect4><title>Allowing users to invoke HAL methods</title>
    247248
    248249      <para>The default setup for <application>HAL</application> is to allow
     
    303304&lt;/deviceinfo&gt;</literal>
    304305EOF</userinput></screen>
    305 
     306      </sect4>
     307
     308      <sect4><title>Installing mount helpers</title>
    306309      <para><application>HAL</application> only provides the methods such
    307310      as Mount() to act on hardware. In order to take advantage of these,
     
    311314      installed.</para>
    312315      <!-- FIXME: is Ivman still alive? -->
    313 
     316      <!-- FIXME: explicitly name the mount helpers
     317           from KDE (???) and Xfce (exo-mount) -->
     318      </sect4>
     319
     320      <sect4><title>Changing default mount options</title>
    314321      <para>In some cases, it is necessary to specify some default mount
    315322      options for filesystems. E.g., in non-English environments, the
     
    352359      <para>The important point above is that the configuration procedure is
    353360      desktop-specific. However, as of December, 2007, only GNOME allows the
    354       user to set default mount options on a per-filesystem basis. To do so,
    355       change the
    356       <systemitem>/system/storage/default_options/[fs_type]/mount_options</systemitem>
    357       GConf key either using <xref linkend="gconf-editor"/>, or from the
    358       command line, as demonstrated in the following example:</para>
    359 
    360 <screen><userinput>gconftool-2 --type list --list-type=string \
    361     --set /system/storage/default_options/vfat/mount_options \
    362     "[shortname=mixed,uid=,usefree,iocharset=koi8-r,codepage=866]"</userinput></screen>
    363 
    364       <para>See more details in the gnome-mount(1) manual page.</para>
    365      
    366       <para>KDE allows the mount options to be set only on a per-volume basis,
     361      user to set default mount options on a per-filesystem basis,
     362      as described in the next paragraph.
     363      KDE allows the mount options to be set only on a per-volume basis,
    367364      not per-filesystem, which is a
    368365      <ulink url="http://bugs.kde.org/show_bug.cgi?id=133456">bug</ulink>,
     
    377374           an XML-ized sudo-like confguration parser, which has nothing
    378375           common with the "default mount options" problem. -->
    379       In these desktop environments, if the built-in
    380       default mount options are not suitable, it is needed to mention every
    381       possible removable storage device in <filename>/etc/fstab</filename>
    382       with the correct options, thus mostly defeating the point of
    383       installing HAL.</para>
    384 
    385       <para>If HAL does not accept new mount options by default,
    386       (in the above example, this happens with the <option>usefree</option>
    387       option), as <systemitem class="username">root</systemitem> user,
    388       create a custom policy file that mentions unknown mount options:</para>
     376      In KDE and Xfce, if the built-in default mount options are not suitable,
     377      it is needed to mention every possible removable storage device in
     378      <filename>/etc/fstab</filename> with the correct options, thus mostly
     379      defeating the point of installing HAL.</para>
     380     
     381      <para>In order to adjust the default mount options, GNOME users should
     382      change the
     383      <systemitem>/system/storage/default_options/[fs_type]/mount_options</systemitem>
     384      GConf key either using <xref linkend="gconf-editor"/>, or from the
     385      command line, as demonstrated in the following example:</para>
     386
     387<screen><userinput>gconftool-2 --type list --list-type=string \
     388    --set /system/storage/default_options/vfat/mount_options \
     389    "[shortname=mixed,uid=,usefree,iocharset=koi8-r,codepage=866]"</userinput></screen>
     390
     391      <para>See more details in the gnome-mount(1) manual page.</para>
     392      </sect4>
     393
     394      <sect4><title>Adding allowed mount options</title>
     395      <para>The list of mount options permitted in the default HAL
     396      configuration resides in the
     397      <filename>/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi</filename>
     398      file. GNOME and KDE users may want to use options not in this
     399      list (in the above example, this applies to the <option>usefree</option>
     400      option). In this case, as <systemitem class="username">root</systemitem>
     401      user, create a custom policy file that mentions unknown mount
     402      options:</para>
    389403
    390404<screen role="root"><userinput>install -v -m755 -d /etc/hal/fdi/policy/30user &amp;&amp;
     
    407421      &lt;match key="storage.no_partitions_hint" bool="true"&gt;
    408422        &lt;append key="volume.mount.valid_options" type="strlist"&gt;usefree&lt;/append&gt;
     423        &lt;!-- Insert other options here --&gt;
    409424      &lt;/match&gt;
    410425    &lt;/match&gt;
     
    415430      &lt;match key="volume.fstype" string="vfat"&gt;
    416431        &lt;append key="volume.mount.valid_options" type="strlist"&gt;usefree&lt;/append&gt;
     432        &lt;!-- Insert other options here --&gt;
    417433      &lt;/match&gt;
    418434    &lt;/match&gt;
     
    422438EOF</userinput></screen>
    423439
     440    </sect4>
    424441    </sect3>
    425442
Note: See TracChangeset for help on using the changeset viewer.