ISO Testbed
From Wiki.cyring.fr
Contents |
Syslinux
Setup
- Download & compile the package of Syslinux
from ArchLinux
# refresh the Arch Build System
sudo abs
# create a packages repository
mkdir PKGBUILD
# copy the SysLinux bash script
cp -r /var/abs/core/syslinux PKGBUILD/
cd PKGBUILD/syslinux/
# build SysLinux
makepkg
cd
from GIT
# create a GIT repository
mkdir GIT
cd GIT
# clone the all SysLinux tree
git clone git://git.kernel.org/pub/scm/boot/syslinux/syslinux.git
cd syslinux
# build SysLinux
make
cd
ISO Testbed structure
- Prepare the directories tree
mkdir -p CD_root/isolinux
mkdir CD_root/images CD_root/kernel
if ArchLinux
cp PKGBUILD/syslinux/src/syslinux-4.05/core/isolinux.bin CD_root/isolinux/
cp PKGBUILD/syslinux/src/syslinux-4.05/memdisk/memdisk CD_root/kernel/
cp PKGBUILD/syslinux/src/syslinux-4.05/com32/modules/*.c32 CD_root/isolinux/
if GIT
cp GIT/syslinux/core/isolinux.bin CD_root/isolinux/
cp GIT/syslinux/memdisk/memdisk CD_root/kernel/
cp GIT/syslinux/com32/modules/*.c32 CD_root/isolinux/
Configuration
- Write the configuration file
nano CD_root/isolinux/isolinux.cfg
DEFAULT dir KBDMAP fr.ktl TIMEOUT 0 PROMPT 1 # LABEL dir COM32 ls.c32 LABEL off COMBOOT poweroff.com LABEL core COM32 coredts.c32 LABEL fr COM32 kbdmap.c32 APPEND fr.ktl LABEL us COM32 kbdmap.c32 APPEND us.ktl
Keyboard
- If required, make a French keyboard translation map
# translate a French keyboard
keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz /usr/share/kbd/keymaps/i386/azerty/fr-latin1.map.gz > CD_root/isolinux/fr.ktl
# translate an English keyboard
keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz /usr/share/kbd/keymaps/i386/qwerty/us.map.gz > CD_root/isolinux/us.ktl
Automation
- Code a script to build the ISO image
nano buildiso.sh
mkisofs -o isotestbed.iso \ -b isolinux/isolinux.bin -c isolinux/boot.cat \ -no-emul-boot -boot-load-size 4 -boot-info-table \ CD_root
chmod +x buildiso.sh
- Run the script to build the ISO image
./buildiso.sh
“
- I: -input-charset not specified, using utf-8 (detected in locale settings)
- Size of boot image is 4 sectors -> No emulation
- Total translation table size: 2048
- Total rockridge attributes bytes: 0
- Total directory bytes: 6334
- Path table size(bytes): 54
- Max brk space used 1f000
- 376 extents written (0 MB)
”
VirtualBox
- EOF -