Changes between Initial Version and Version 1 of Documentation/SupportedImages/BuildingBaselineImage


Ignore:
Timestamp:
Jan 25, 2012, 6:25:15 PM (12 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/SupportedImages/BuildingBaselineImage

    v1 v1  
     1= Steps for Building a Baseline Image =
     2
     3Our images are primarily derived from a stock distributions OS. Currently we're following the Ubuntu distribution line. The only core service required during installation is the ssh server. The partition size should be kept small to simplify the image gathering process. Due to limitations
     4with the Frisbee tools we can only use ext2/ext3 file systems.
     5
     6The major modifications that will be required are:
     7 * Setting up serial console
     8  * Grub serial config (including kernel flags)
     9  * Getty serial config (for loggin in from the serial console, other wise it looks like it hangs)
     10 * Setting Root user to have password less login (and dropping all other user records)
     11 * removing unnecessary packages to minimize image size
     12 * installing necessary omf/oml packages
     13 *
     14
     15----
     16
     17== Version/Distributions specific Notes ==
     18
     19=== Ubuntu 11.10 ===
     20To configure grub/kernel messages to goto serial add/modify the following lines in /etc/default/grub and run update-grub:
     21
     22{{{
     23GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
     24GRUB_TERMINAL=serial
     25GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
     26}}}
     27
     28To configure the serial console for login create a file named /etc/init/ttyS0.conf and give it the following contents:
     29{{{
     30# ttyS0 - getty
     31#
     32# This service maintains a getty on ttyS0 from the point the system is
     33# started until it is shut down again.
     34
     35start on stopped rc or RUNLEVEL=[2345]
     36stop on runlevel [!2345]
     37
     38respawn
     39exec /sbin/getty -L 115200 ttyS0 vt102
     40}}}
     41then start it with up start:
     42{{{
     43sudo start ttyS0
     44}}}
     45