Changeset 8222

Show
Ignore:
Timestamp:
07/18/07 07:26:34 (1 year ago)
Author:
dnicholson
Message:

Add the consolelog bootscript and remove printk handling in modules script

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BOOK/chapter01/changelog.xml

    r8221 r8222  
    157157 
    158158    <listitem> 
     159      <para>2007-07-18</para> 
     160      <itemizedlist> 
     161        <listitem> 
     162          <para>[dnicholson] - Described the configuration of the consolelog 
     163          bootscript.</para> 
     164        </listitem> 
     165      </itemizedlist> 
     166    </listitem> 
     167 
     168    <listitem> 
    159169      <para>2007-06-12</para> 
    160170      <itemizedlist> 
     
    178188          <para>[ken] - Upgrade to tar-1.17, fixes 
    179189          <ulink url="&lfs-ticket-root;2029">#2029</ulink>.</para> 
    180        </listitem> 
     190        </listitem> 
    181191      </itemizedlist> 
    182192    </listitem> 
  • trunk/BOOK/chapter07/console.xml

    r8174 r8222  
    1717 
    1818  <para>This section discusses how to configure the <command>console</command> 
    19   bootscript that sets up the keyboard map and the console font. If non-ASCII 
    20   characters (e.g., the copyright sign, the British pound sign and Euro symbol) 
    21   will not be used and the keyboard is a U.S. one, skip this section. Without 
     19  and <command>consolelog</command> bootscripts that set up the keyboard map, 
     20  console font and console kernel log level. If non-ASCII characters (e.g., 
     21  the copyright sign, the British pound sign and Euro symbol) will not be used 
     22  and the keyboard is a U.S. one, much of this section can be skipped. Without 
    2223  the configuration file, the <command>console</command> bootscript will do 
    2324  nothing.</para> 
    2425 
    25   <para>The <command>console</command> script reads the 
    26   <filename>/etc/sysconfig/console</filename> file for configuration information. 
     26  <para>The <command>console</command>  and <command>consolelog</command> 
     27  script reads the <filename>/etc/sysconfig/console</filename> file for 
     28  configuration information. 
    2729  Decide which keymap and screen font will be used. Various language-specific 
    2830  HOWTOs can also help with this, see <ulink 
     
    3739 
    3840  <variablelist> 
     41 
     42    <varlistentry> 
     43      <term>LOGLEVEL</term> 
     44      <listitem> 
     45        <para>This variable specifies the log level for kernel messages sent 
     46        to the console as set by <command>dmesg</command>. Valid levels are 
     47        from "1" (no messages) to "8". The default level is "7".</para> 
     48      </listitem> 
     49    </varlistentry> 
    3950 
    4051    <varlistentry> 
  • trunk/BOOK/general.ent

    r8215 r8222  
    11<?xml version="1.0" encoding="ISO-8859-1"?> 
    2 <!ENTITY version "SVN-20070714"> 
    3 <!ENTITY releasedate "July 14, 2007"> 
     2<!ENTITY version "SVN-20070718"> 
     3<!ENTITY releasedate "July 18, 2007"> 
    44<!ENTITY milestone "6.3"> 
    55<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> 
  • trunk/bootscripts/ChangeLog

    r8167 r8222  
     12007-07-18      Dan Nicholson   <dnicholson@linuxfromscratch.org> 
     2        * Makefile, lfs/init.d/consolelog: New bootscript controlling the 
     3          kernel log level on the console. This is controlled by the LOGLEVEL 
     4          variable in /etc/sysconfig/console. 
     5        * lfs/init.d/modules: Remove the log level handling since this is 
     6          done in the consolelog script now. 
     7 
    182007-06-16      Dan Nicholson   <dnicholson@linuxfromscratch.org> 
    29        * lfs/init.d/mountfs, lfs/init.d/mountkernfs, lfs/init.d/setclock, 
  • trunk/bootscripts/Makefile

    r7909 r8222  
    2828        install -m ${MODE} lfs/init.d/halt          ${EXTDIR}/rc.d/init.d/ 
    2929        install -m ${MODE} lfs/init.d/console       ${EXTDIR}/rc.d/init.d/ 
     30        install -m ${MODE} lfs/init.d/consolelog    ${EXTDIR}/rc.d/init.d/ 
    3031        install -m ${MODE} lfs/init.d/localnet      ${EXTDIR}/rc.d/init.d/ 
    3132        install -m ${MODE} lfs/init.d/modules       ${EXTDIR}/rc.d/init.d/ 
     
    6869        ln -sf ../init.d/reboot      ${EXTDIR}/rc.d/rc6.d/S99reboot 
    6970        ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs 
     71        ln -sf ../init.d/consolelog  ${EXTDIR}/rc.d/rcsysinit.d/S02consolelog 
    7072        ln -sf ../init.d/modules     ${EXTDIR}/rc.d/rcsysinit.d/S05modules 
    7173        ln -sf ../init.d/udev        ${EXTDIR}/rc.d/rcsysinit.d/S10udev 
  • trunk/bootscripts/lfs/init.d/modules

    r8167 r8222  
    2121case "${1}" in 
    2222        start) 
    23  
    24                 # If proc is mounted, find the current kernel 
    25                 # message level  
    26                 if [ -f /proc/sys/kernel/printk ]; then 
    27                         prev_msg=`cat /proc/sys/kernel/printk | \ 
    28                                         sed 'l 1' | sed -n '2~0p' | \ 
    29                                         sed 's/\\\//'` 
    30                 else  
    31                         prev_msg="6" 
    32                 fi 
    33  
    34                 # Now set the message level to 1 so not to make too  
    35                 # much noise when loading modules 
    36                 dmesg -n 1 
    3723 
    3824                # Only try to load modules if the user has actually given us 
     
    8167 
    8268                fi 
    83                 # Set the kernel message level back to it's previous value. 
    84                 dmesg -n "${prev_msg}" 
    8569                ;; 
    8670        *)