Changeset 8222
- Timestamp:
- 07/18/07 07:26:34 (1 year ago)
- Files:
-
- trunk/BOOK/chapter01/changelog.xml (modified) (2 diffs)
- trunk/BOOK/chapter07/console.xml (modified) (2 diffs)
- trunk/BOOK/general.ent (modified) (1 diff)
- trunk/bootscripts/ChangeLog (modified) (1 diff)
- trunk/bootscripts/Makefile (modified) (2 diffs)
- trunk/bootscripts/lfs/init.d/consolelog (added)
- trunk/bootscripts/lfs/init.d/modules (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BOOK/chapter01/changelog.xml
r8221 r8222 157 157 158 158 <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> 159 169 <para>2007-06-12</para> 160 170 <itemizedlist> … … 178 188 <para>[ken] - Upgrade to tar-1.17, fixes 179 189 <ulink url="&lfs-ticket-root;2029">#2029</ulink>.</para> 180 </listitem>190 </listitem> 181 191 </itemizedlist> 182 192 </listitem> trunk/BOOK/chapter07/console.xml
r8174 r8222 17 17 18 18 <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 22 23 the configuration file, the <command>console</command> bootscript will do 23 24 nothing.</para> 24 25 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. 27 29 Decide which keymap and screen font will be used. Various language-specific 28 30 HOWTOs can also help with this, see <ulink … … 37 39 38 40 <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> 39 50 40 51 <varlistentry> trunk/BOOK/general.ent
r8215 r8222 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!ENTITY version "SVN-2007071 4">3 <!ENTITY releasedate "July 1 4, 2007">2 <!ENTITY version "SVN-20070718"> 3 <!ENTITY releasedate "July 18, 2007"> 4 4 <!ENTITY milestone "6.3"> 5 5 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> trunk/bootscripts/ChangeLog
r8167 r8222 1 2007-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 1 8 2007-06-16 Dan Nicholson <dnicholson@linuxfromscratch.org> 2 9 * lfs/init.d/mountfs, lfs/init.d/mountkernfs, lfs/init.d/setclock, trunk/bootscripts/Makefile
r7909 r8222 28 28 install -m ${MODE} lfs/init.d/halt ${EXTDIR}/rc.d/init.d/ 29 29 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/ 30 31 install -m ${MODE} lfs/init.d/localnet ${EXTDIR}/rc.d/init.d/ 31 32 install -m ${MODE} lfs/init.d/modules ${EXTDIR}/rc.d/init.d/ … … 68 69 ln -sf ../init.d/reboot ${EXTDIR}/rc.d/rc6.d/S99reboot 69 70 ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs 71 ln -sf ../init.d/consolelog ${EXTDIR}/rc.d/rcsysinit.d/S02consolelog 70 72 ln -sf ../init.d/modules ${EXTDIR}/rc.d/rcsysinit.d/S05modules 71 73 ln -sf ../init.d/udev ${EXTDIR}/rc.d/rcsysinit.d/S10udev trunk/bootscripts/lfs/init.d/modules
r8167 r8222 21 21 case "${1}" in 22 22 start) 23 24 # If proc is mounted, find the current kernel25 # message level26 if [ -f /proc/sys/kernel/printk ]; then27 prev_msg=`cat /proc/sys/kernel/printk | \28 sed 'l 1' | sed -n '2~0p' | \29 sed 's/\\\//'`30 else31 prev_msg="6"32 fi33 34 # Now set the message level to 1 so not to make too35 # much noise when loading modules36 dmesg -n 137 23 38 24 # Only try to load modules if the user has actually given us … … 81 67 82 68 fi 83 # Set the kernel message level back to it's previous value.84 dmesg -n "${prev_msg}"85 69 ;; 86 70 *)
