Utils/gentcos
From TcosProject
Contents |
[edit] gentcos
Shell script taht creates network boot images using /etc/tcos/tcos.conf configuration file. You must exec this script as root or use sudo.
[edit] Install
This command is included into initramfs-tools-tcos package.
[edit] Source
gentcos at TCOS TRAC
[edit] Parameters
# gentcos
Usage:
gentcos -tftp [-o=initrd-pc1] PXE (>= 64 Mb)
-nfs [-rootfs] LTSP like (28 - 64 Mb)
-nbi [-nbi-output=linux.nbi] Floppy
-cdrom [-type=grub] [-force] CDROM
[-h] or [-help] gentcos extended help
[-vmlinux=vmlinuz-x.x.x|/boot/vmlinuz-x.x.x] kernel version
[-suffix=foo] ( suffix for filenames )
[-size] ( print ramdisk size )
[-allmodules] ( generate allmodules-2.6.17-2-486.squashfs to
know what kernel modules need )
[-extramodules=foo,bar] ( add coma separated list of modules )
Or extended help:
# gentcos -help
This is gentcos help info about generating net init images.
TFTP PXE images:
-tftp or [-t] make initramfs-2.6.17-2-486 and copy to /tftpboot/tcos
[-o=initramfs-tcos1] output file
( default /tftpboot/tcos/initramfs )
NFS (like LTSP) images:
-nfs or [-n] make initramfs-2.6.17-2-486-nfs and copy to /tftpboot/tcos
[-rootfs] Make a complete initramfs and uncompress in /opt/tcos/fs-2.6.17-2-486
( default /tftpboot/tcos/initramfs-nfs )
NBI IMAGES: ( Etherboot floppy )
-nbi or [-b] create NBI (network bootable images) in /tftpboot/tcos
[-nbi-output=linux-tcos1.nbi] output nbi file
( default linux.nbi-2.6.17-2-486 )
[-extra-append] append more options to cmline of NBI image
( Example: -extra-append="splash startx=N volume=80%"
ISO IMAGES:
-cdrom or [-c] create cdrom iso file in /var/lib/tcos/isos
[-type=grub|isolinux] make cdrom based on isolinux or grub
[-force] force cdrom build if external SQUASH is enabled
( this will put squashfs into initramfs )
In all build you can add this params:
-vmlinuz=[ vmlinuz.x.x.x | /boot/vmlinuz.x.x.x ]
this will build all images with the kernel version of this file
Examples of use:
gentcos -tftp -suffix=-pc1
gentcos -nfs -rootfs
gentcos -cdrom -type=grub
gentcos -nbi -extra-append="splash vga=791 uselocal"
[edit] Typical output
# gentcos -tftp
Creating initramfs with 2.6.17-2-486 kernel...
busybox pass test: OK
Package Tcos Discover2 get 3432 Kb.
Copying root public SSH key
Package Dropbear ssh server get 2180 Kb.
Package LTSPFS get 968 Kb.
Package Alsa sound support get 1160 Kb.
USING Xorg 7.X dirs
xorg: installing all drivers....
Package Xorg get 16960 Kb.
Package x11vnc get 1208 Kb.
Package Inetd daemon get 32 Kb.
Package Debug tools get 236 Kb.
Package tinylogin get 0 Kb.
Package PulseAudio (sound server) get 2300 Kb.
Package HWclock get 32 Kb.
Package TcosMonitor get 1344 Kb.
Package debootstrap install-system.sh get 816 Kb.
Creating usr-2.6.17-2-486.squashfs of /usr
Moving usr-2.6.17-2-486.squashfs to /opt/tcos/files and linking in /tftpboot/tcos
Package Init binaries get 36 Kb.
Package Disable ACPI and RAID support get -44 Kb.
Copying initramfs to /tftpboot/tcos/initramfs-2.6.17-2-486