aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorMarvin Borner2020-04-25 15:31:09 +0200
committerMarvin Borner2020-04-25 15:31:09 +0200
commit30601e14f216488ee3a36dc44ab0ed56da7ccdb2 (patch)
tree3bef128513ce569b64788853d688179ac7562096 /run
parent24175ce2a37d6f5d9ba367f942fabce681ee9e4a (diff)
Working ext2 filereader
As soon as I implement indirect block pointers, the resources will hopefully work again :)
Diffstat (limited to 'run')
-rwxr-xr-xrun20
1 files changed, 11 insertions, 9 deletions
diff --git a/run b/run
index 68b0236..856086b 100755
--- a/run
+++ b/run
@@ -69,22 +69,24 @@ make_build() {
make || exit 1
cd ..
+ # Create ISO
+ mkdir -p ./iso/boot/grub/
+ cp ./build/kernel.bin ./iso/boot/kernel.bin
+ cp ./src/bootloader/grub.cfg ./iso/boot/grub/
+ grub-mkrescue -o ./build/melvix.iso ./iso/ || exit 1
+
# Create disk image
mke2fs -b 4096 -N 4096 ./build/disk.img 65536 || exit 1
mkdir ./mnt/ || exit 1
sudo mount ./build/disk.img ./mnt/ || exit 1
- sudo mkdir -p ./mnt/abc/def/
- echo "Bananenkuchen" | sudo tee -a ./mnt/test
- echo "toll" | sudo tee -a ./mnt/abc/def/baum
+ sudo mkdir -p ./mnt/etc/
+ sudo mkdir -p ./mnt/usr/
+ sudo mkdir -p ./mnt/bin/
+ echo "Hello world, ext2!" | sudo tee -a ./mnt/etc/test
+ sudo mv ./build/*.bin ./mnt/bin/
sync && sudo umount mnt || exit 1
rm -r mnt/
- # Create ISO
- mkdir -p ./iso/boot/grub/
- cp ./build/kernel.bin ./iso/boot/kernel.bin
- cp ./src/bootloader/grub.cfg ./iso/boot/grub/
- grub-mkrescue -o ./build/melvix.iso ./iso/ || exit 1
-
printf "Build finshed successfully!\n\n"
}