blob: d67b3ec0369630dc75116bb5b01c4bac5cdd1644 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
if [ ! -e cdrom/boot/grub/stage2_eltorito ]; then
mkdir -p cdrom/boot/grub
echo "Please copy grub's stage2_eltorito to cdrom/boot/grub."
exit -1
fi
# Copy system files to CDROM
cp src/kernel/kernel.bin cdrom; strip cdrom/kernel.bin
cp src/apps/init/init.bin cdrom; strip cdrom/init.bin
cp README.md cdrom
# Setup config files
cat > cdrom/boot/grub/menu.lst <<EOF
timeout 10
default 0
title kogata OS
kernel /kernel.bin root=io:/disk/atapi0 root_opts=l init=root:/init.bin
title kogata OS without root
kernel /kernel.bin init=io:/mod/init.bin
module /init.bin
EOF
# Generate CDROm image
genisoimage -R -b boot/grub/stage2_eltorito -no-emul-boot \
-boot-load-size 4 -boot-info-table -input-charset ascii \
-A kogata-os -o cdrom.iso cdrom
|