| 1 | = Steps for Building a Baseline Image = |
| 2 | |
| 3 | Our 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 |
| 4 | with the Frisbee tools we can only use ext2/ext3 file systems. |
| 5 | |
| 6 | The 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 === |
| 20 | To configure grub/kernel messages to goto serial add/modify the following lines in /etc/default/grub and run update-grub: |
| 21 | |
| 22 | {{{ |
| 23 | GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8" |
| 24 | GRUB_TERMINAL=serial |
| 25 | GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" |
| 26 | }}} |
| 27 | |
| 28 | To 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 | |
| 35 | start on stopped rc or RUNLEVEL=[2345] |
| 36 | stop on runlevel [!2345] |
| 37 | |
| 38 | respawn |
| 39 | exec /sbin/getty -L 115200 ttyS0 vt102 |
| 40 | }}} |
| 41 | then start it with up start: |
| 42 | {{{ |
| 43 | sudo start ttyS0 |
| 44 | }}} |
| 45 | |