Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 55 lines (38 sloc) 1.27 kB
#!/bin/sh
ARCH=$1
BULD_TYPE=$2
isocmd="genisoimage"
which genisoimage
if [ $? -ne 0 ]; then
isocmd="mkisofs"
fi
which mkisofs
if [ $? -ne 0 ]; then
echo "Please install mkisofs or genisoimage and try again."
exit 1
fi
rm -rf iso/parvos.iso isofs/System isofs/boot
mkdir -p isofs/System
mkdir -p isofs/boot
cp src/kernel/parvos.exe isofs/System/
cp src/lib/krnllib/krnllib.lib isofs/System/
mkdir -p iso
function grub(){
echo $@ >> isofs/boot/grub/menu.lst
}
mkdir -p isofs/boot/grub
echo > isofs/boot/grub/menu.lst
grub "default 1"
grub "timeout 3"
grub "title parvos"
grub "kernel /System/parvos.exe"
if [ ! -e isofs/boot/grub/stage2_eltorito ]; then
if [ -e /boot/grub/stage2_eltorito ]; then
echo "Can't find stage2_eltorito in ./isofs/boot/grub, copying from /boot/grub/"
cp /boot/grub/stage2_eltorito isofs/boot/grub/stage2_eltorito
else
echo "Downloading stage2_eltorito from http://misc.duckinator.net/stage2_eltorito"
wget http://osdev.googlecode.com/svn-history/r12/trunk/geekos/build/x86/boot/stage2_eltorito -O isofs/boot/grub/stage2_eltorito
fi
fi
$isocmd -R -b "boot/grub/stage2_eltorito" --no-emul-boot --boot-load-size 4 --boot-info-table --input-charset utf-8 -o iso/parvos.iso isofs
Jump to Line
Something went wrong with that request. Please try again.