mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Add /etc/sysconfig to Creating Directories
Update boot logging to remove terminal escape sequences git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9575 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
0cda8984a8
commit
a2e555d8d6
@ -136,36 +136,36 @@ echo_ok()
|
||||
{
|
||||
${ECHO} -n -e "${CURS_UP}${SET_COL}${BRACKET}[${SUCCESS} OK ${BRACKET}]"
|
||||
${ECHO} -e "${NORMAL}"
|
||||
boot_mesg_flush
|
||||
${ECHO} -n -e "${CURS_UP}${SET_COL}${BRACKET}[${SUCCESS} OK ${BRACKET}]" >> /run/var/bootlog
|
||||
${ECHO} -e "${NORMAL}" >> /run/var/bootlog
|
||||
boot_mesg_flush
|
||||
|
||||
${ECHO} -e "[ OK ]" >> /run/var/bootlog
|
||||
}
|
||||
|
||||
echo_failure()
|
||||
{
|
||||
${ECHO} -n -e "${CURS_UP}${SET_COL}${BRACKET}[${FAILURE} FAIL ${BRACKET}]"
|
||||
${ECHO} -e "${NORMAL}"
|
||||
boot_mesg_flush
|
||||
${ECHO} -n -e "${CURS_UP}${SET_COL}${BRACKET}[${FAILURE} FAIL ${BRACKET}]" >> /run/var/bootlog
|
||||
${ECHO} -e "${NORMAL}" >> /run/var/bootlog
|
||||
boot_mesg_flush
|
||||
|
||||
${ECHO} -e "[ FAIL]" >> /run/var/bootlog
|
||||
}
|
||||
|
||||
echo_warning()
|
||||
{
|
||||
${ECHO} -n -e "${CURS_UP}${SET_COL}${BRACKET}[${WARNING} WARN ${BRACKET}]"
|
||||
${ECHO} -e "${NORMAL}"
|
||||
boot_mesg_flush
|
||||
${ECHO} -n -e "${CURS_UP}${SET_COL}${BRACKET}[${WARNING} WARN ${BRACKET}]" >> /run/var/bootlog
|
||||
${ECHO} -e "${NORMAL}" >> /run/var/bootlog
|
||||
boot_mesg_flush
|
||||
|
||||
${ECHO} -e "[ WARN ]" >> /run/var/bootlog
|
||||
}
|
||||
|
||||
echo_skipped()
|
||||
{
|
||||
${ECHO} -n -e "${CURS_UP}${SET_COL}${BRACKET}[${WARNING} SKIP ${BRACKET}]"
|
||||
${ECHO} -e "${NORMAL}"
|
||||
boot_mesg_flush
|
||||
${ECHO} -n -e "${CURS_UP}${SET_COL}${BRACKET}[${WARNING} SKIP ${BRACKET}]" >> /run/var/bootlog
|
||||
${ECHO} -e "${NORMAL}" >> /run/var/bootlog
|
||||
boot_mesg_flush
|
||||
|
||||
${ECHO} -e " [ SKIP ]" >> /run/var/bootlog
|
||||
}
|
||||
|
||||
wait_for_user()
|
||||
@ -713,9 +713,8 @@ log_success_msg()
|
||||
{
|
||||
${ECHO} -n -e "${BOOTMESG_PREFIX}${@}"
|
||||
${ECHO} -e "${SET_COL}""${BRACKET}""[""${SUCCESS}"" OK ""${BRACKET}""]""${NORMAL}"
|
||||
${ECHO} -n -e "${BOOTMESG_PREFIX}${@}" >> /run/var/bootlog
|
||||
${ECHO} -e "${SET_COL}""${BRACKET}""[""${SUCCESS}"" OK ""${BRACKET}""]""${NORMAL}" \
|
||||
>> /run/var/bootlog
|
||||
|
||||
${ECHO} -n -e "${@} [ OK ]" >> /run/var/bootlog
|
||||
return 0
|
||||
}
|
||||
|
||||
@ -736,9 +735,8 @@ log_success_msg()
|
||||
log_failure_msg() {
|
||||
${ECHO} -n -e "${BOOTMESG_PREFIX}${@}"
|
||||
${ECHO} -e "${SET_COL}""${BRACKET}""[""${FAILURE}"" FAIL ""${BRACKET}""]""${NORMAL}"
|
||||
${ECHO} -n -e "${BOOTMESG_PREFIX}${@}" >> /run/var/bootlog
|
||||
${ECHO} -e "${SET_COL}""${BRACKET}""[""${FAILURE}"" FAIL ""${BRACKET}""]""${NORMAL}" \
|
||||
>> /run/var/bootlog
|
||||
|
||||
${ECHO} -e "${@} [ FAIL ]" >> /run/var/bootlog
|
||||
return 0
|
||||
}
|
||||
|
||||
@ -759,9 +757,8 @@ log_failure_msg() {
|
||||
log_warning_msg() {
|
||||
${ECHO} -n -e "${BOOTMESG_PREFIX}${@}"
|
||||
${ECHO} -e "${SET_COL}""${BRACKET}""[""${WARNING}"" WARN ""${BRACKET}""]""${NORMAL}"
|
||||
${ECHO} -n -e "${BOOTMESG_PREFIX}${@}" >> /run/var/bootlog
|
||||
${ECHO} -e "${SET_COL}""${BRACKET}""[""${WARNING}"" WARN ""${BRACKET}""]""${NORMAL}" \
|
||||
>> /run/var/bootlog
|
||||
|
||||
${ECHO} -e "${@} [ WARN ]" >> /run/var/bootlog
|
||||
return 0
|
||||
}
|
||||
|
||||
@ -782,9 +779,8 @@ log_warning_msg() {
|
||||
log_skipped_msg() {
|
||||
${ECHO} -n -e "${BOOTMESG_PREFIX}${@}"
|
||||
${ECHO} -e "${SET_COL}""${BRACKET}""[""${WARNING}"" SKIP ""${BRACKET}""]""${NORMAL}"
|
||||
${ECHO} -n -e "${BOOTMESG_PREFIX}${@}" >> /run/var/bootlog
|
||||
${ECHO} -e "${SET_COL}""${BRACKET}""[""${WARNING}"" SKIP ""${BRACKET}""]""${NORMAL}" \
|
||||
>> /run/var/bootlog
|
||||
|
||||
${ECHO} -e "${@} [ SKIP ]" >> /run/var/bootlog
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,19 @@
|
||||
</listitem>
|
||||
|
||||
-->
|
||||
<listitem>
|
||||
<para>2011-08-02</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[bdubbs] - Add /etc/sysconfig to Creating Directories.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>[bdubbs] - Update boot logging to remove terminal escape
|
||||
sequences.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>2011-08-01</para>
|
||||
<itemizedlist>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<para>It is time to create some structure in the LFS file system. Create a
|
||||
standard directory tree by issuing the following commands:</para>
|
||||
|
||||
<screen><userinput>mkdir -pv /{bin,boot,etc/opt,home,lib,mnt,opt,run}
|
||||
<screen><userinput>mkdir -pv /{bin,boot,etc/{opt,sysconfig},home,lib,mnt,opt,run}
|
||||
mkdir -pv /{media/{floppy,cdrom},sbin,srv,var}
|
||||
install -dv -m 0750 /root
|
||||
install -dv -m 1777 /tmp /var/tmp
|
||||
|
@ -120,7 +120,7 @@ done</userinput></screen>
|
||||
depends on the files in <filename
|
||||
class="directory">/etc/sysconfig/</filename>. This directory should
|
||||
contain a file for each interface to be configured, such as
|
||||
<filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is is
|
||||
<filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is
|
||||
meaningful to the administrator such as the device name (e.g. eth0).
|
||||
Inside this file are attributes to this interface, such as its IP
|
||||
address(es), subnet masks, and so forth. It is necessary that
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!ENTITY version "SVN-20110801">
|
||||
<!ENTITY releasedate "Aug 1, 2011">
|
||||
<!ENTITY version "SVN-20110802">
|
||||
<!ENTITY releasedate "Aug 2, 2011">
|
||||
<!ENTITY copyrightdate "1999-2011"><!-- jhalfs needs a literal dash, not – -->
|
||||
<!ENTITY milestone "7.0">
|
||||
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
||||
|
@ -297,7 +297,7 @@
|
||||
<!ENTITY less-ch6-du "3.5 MB">
|
||||
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
|
||||
|
||||
<!ENTITY lfs-bootscripts-version "20110801"> <!-- Scripts depend on this format -->
|
||||
<!ENTITY lfs-bootscripts-version "20110802"> <!-- Scripts depend on this format -->
|
||||
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> <!-- Updated in Makefile -->
|
||||
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
|
||||
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> <!-- Updated in Makefile -->
|
||||
|
Loading…
Reference in New Issue
Block a user