Creating Usb Boot Media; Kickstart Boot Menu Example - Red Hat NETWORK SATELLITE 5.3.0 Deployment Manual

Hide thumbs Also See for RED HAT NETWORK SATELLITE 5.3.0:
Table of Contents

Advertisement

Chapter 2. Satellite Operation Guidance

2.6.4. Creating USB Boot Media

Creating bootable USB image can done with the following commands after the preparations above.
Be extremely careful when carrying out these command as root (required for most critical parts) since
they access device files and may irrecoverably damage your system! The example below uses /dev/
loop0 for mounting, make sure you use the device which the command losetup -f prints.
cd ../usb
cp -p /usr/lib/syslinux/menu.c32 extlinux/
mv extlinux/isolinux.cfg extlinux/extlinux.conf
rm -f extlinux/isolinux.bin extlinux/TRANS.TBL
vi extlinux/extlinux.conf
dd if=/dev/zero of=./custom-boot.img bs=1024 count=30000
losetup -f
losetup /dev/loop0 ./custom-boot.img
fdisk /dev/loop0
Under fdisk, create one primary bootable partition by following the sequence of keypress commands
entered within the fdisk interface:
n, p, 1, Enter, Enter, a, 1, p, w
Now, finish the process:
dd if=/usr/lib/syslinux/mbr.bin of=/dev/loop0
kpartx -av /dev/loop0
mkfs.ext2 -m 0 -L "Custom RHEL Boot" /dev/mapper/loop0p1
mount /dev/mapper/loop0p1 temp
rm -rf temp/lost+found
cp -a extlinux/* temp/
extlinux temp
umount temp
kpartx -dv /dev/loop0
losetup -d /dev/loop0
sync
Customize the boot targets and boot parameters in extlinux.conf as needed for USB booting. To
transfer the image to a USB stick, insert the stick into your computer, check from dmesg output its
device name (/dev/sdb in the example below), unmount it, and transfer the image:
umount /dev/sdb
dd if=./custom-boot.img of=/dev/sdb

2.6.5. Kickstart Boot Menu Example

The following files, when placed in the same directory as the menu helper program menu.c32 will
present a boot menu which can be interactively navigated and edited byusing the arrow keys and the
tabulator.
Main Menu
DEFAULT menu.c32
16

Advertisement

Table of Contents
loading

Table of Contents