Debian Codegraph @

Bootdisks/rhmkboot

raw
1 #!/bin/sh
2
3 set -e
4
5 # Make local mount points
6 mkdir -p mnt1 mnt2
7
8 # Work on a copy of bootdisk image
9 cp -f boot.img myboot.img
10 mount myboot.img mnt1 -o loop -t msdos
11
12 # Modify syslinux.cfg
13 cat >cfg <<EOF
14 label brltty
15 kernel vmlinuz
16 append root=/dev/fd0 load_ramdisk=1 prompt_ramdisk=1 lang= text devfs=nomount ramdisk_size=9216
17 EOF
18 cat mnt1/syslinux.cfg |sed 's/default linux/default brltty/' >>cfg
19 cp cfg mnt1/syslinux.cfg
20 umount mnt1