aboutsummaryrefslogtreecommitdiff
path: root/make_cdrom.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-10 20:12:10 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-10 20:12:10 +0100
commit6d9cd139c42a48f5ddf8f8e284f56873de73fd31 (patch)
tree7b4ca008eb6375c0d5ba9eb1456674ee996fb5d6 /make_cdrom.sh
parent4ab8b6206b1ba36cbf4db4a416e04304bbd7ebc0 (diff)
downloadkogata-6d9cd139c42a48f5ddf8f8e284f56873de73fd31.tar.gz
kogata-6d9cd139c42a48f5ddf8f8e284f56873de73fd31.zip
Things are happenning ; lots of bugs.
Diffstat (limited to 'make_cdrom.sh')
-rwxr-xr-xmake_cdrom.sh20
1 files changed, 13 insertions, 7 deletions
diff --git a/make_cdrom.sh b/make_cdrom.sh
index d67b3ec..b539273 100755
--- a/make_cdrom.sh
+++ b/make_cdrom.sh
@@ -8,23 +8,29 @@ 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 src/kernel/kernel.bin cdrom/boot; strip cdrom/boot/kernel.bin
+cp src/sysbin/init/init.bin cdrom/boot; strip cdrom/boot/init.bin
+
+mkdir -p cdrom/sys/bin
+cp src/sysbin/giosrv/giosrv.bin cdrom/sys/bin
+cp src/sysbin/login/login.bin cdrom/sys/bin
+
+for BIN in cdrom/sys/bin/*.bin; do strip $BIN; done
cp README.md cdrom
# Setup config files
+mkdir -p cdrom/config/default
+
+echo "root:/sys" > cdrom/config/default/sysdir
+
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
+kernel /boot/kernel.bin root=io:/disk/atapi0 root_opts=l init=root:/boot/init.bin config=default
EOF
# Generate CDROm image