Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 5147

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<HTML
><HEAD
><TITLE
>Create boot disk for serial console</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Remote Serial Console HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="Upgrading Red Hat Linux from a
  serial console"
HREF="rhl.html"><LINK
REL="PREVIOUS"
TITLE="Upgrade Red Hat distribution"
HREF="rhl-upgrade.html"><LINK
REL="NEXT"
TITLE="Further references"
HREF="rhreferences.html"></HEAD
><BODY
CLASS="SECTION"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Remote Serial Console HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="rhl-upgrade.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Appendix C. Upgrading <SPAN
CLASS="PRODUCTNAME"
>Red Hat Linux</SPAN
> from a
  serial console</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="rhreferences.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECTION"
><H1
CLASS="SECTION"
><A
NAME="RHBOOTDISK"
></A
>C.9. Create boot disk for serial console</H1
><P
>Once the upgrade has been sucessfully done create a boot
   floppy which has serial console support.  This is most simply done
   by creating a boot disk, as done by the
   <SPAN
CLASS="APPLICATION"
>anaconda</SPAN
> installer or as described in
   <A
HREF="preparation-fallback.html"
>Section 2.1</A
>; modifying the configuration
   file <TT
CLASS="FILENAME"
>\SYSLINUX.CFG</TT
> to configure the boot
   loader to use the serial console, as described in <A
HREF="configure-boot-loader-syslinux.html"
>Section 4.3</A
>; and finally configuring
   the kernel to use the serial console, as described in <A
HREF="configure-kernel-syslinux.html"
>Section 5.3</A
>.</P
><P
>An alternative is to create your own
   <SPAN
CLASS="APPLICATION"
>mkbootdisk</SPAN
> <SPAN
CLASS="ACRONYM"
>RPM</SPAN
>
   package containing a modified copy of the shell script
   <TT
CLASS="FILENAME"
>/sbin/mkbootdisk</TT
>.</P
><P
>The <TT
CLASS="FILENAME"
>\SYSLINUX.CFG</TT
> file on the boot
   floppy is written by <B
CLASS="COMMAND"
>mkbootdisk</B
> using the code
   in <A
HREF="rhbootdisk.html#RHBOOTDISK-MKBOOTDISK-ORIGINAL"
>Figure C-3</A
>.  We alter this
   code to use the serial console; the result is shown in <A
HREF="rhbootdisk.html#RHBOOTDISK-MKBOOTDISK-SERIAL"
>Figure C-4</A
>.</P
><DIV
CLASS="FIGURE"
><A
NAME="RHBOOTDISK-MKBOOTDISK-ORIGINAL"
></A
><P
><B
>Figure C-3. Extract from Red Hat Linux 7.2
    <TT
CLASS="FILENAME"
>mkbootdisk</TT
> which creates
    <TT
CLASS="FILENAME"
>SYSLINUX.CFG</TT
></B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
>cat &#62; $MOUNTDIR/syslinux.cfg &#60;&#60;EOF
default linux
prompt 1
display boot.msg
timeout 100
label linux
  kernel vmlinuz
  append $INITRDARG root=$rootdev
EOF</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="FIGURE"
><A
NAME="RHBOOTDISK-MKBOOTDISK-SERIAL"
></A
><P
><B
>Figure C-4. Altered extract from <TT
CLASS="FILENAME"
>mkbootdisk</TT
>, which
    creates a <TT
CLASS="FILENAME"
>SYSLINUX.CFG</TT
> that uses a serial
    console</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
>cat &#62; $MOUNTDIR/syslinux.cfg &#60;&#60;EOF
serial 0 9600
default linux
prompt 1
display boot.msg
timeout 100
label linux
  kernel vmlinuz
  append $INITRDARG root=$rootdev console=tty0 console=ttyS0,9600n8
EOF</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><P
>Created boot floppies will now use the serial console.</P
><P
>By far the best alternative would be the addition of
   parameters to <B
CLASS="COMMAND"
>mkbootdisk</B
> to allow the kernel
   parameters and serial port, speed and flow control to be given when
   the boot floppy is created.  For this enhancement request see Red
   Hat Bugzilla entry <A
HREF="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=59351"
TARGET="_top"
>59351</A
>.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="rhl-upgrade.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="rhreferences.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Upgrade Red Hat distribution</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="rhl.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Further references</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>