diff options
author | Marvin Borner | 2020-04-25 15:31:09 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-25 15:31:09 +0200 |
commit | 30601e14f216488ee3a36dc44ab0ed56da7ccdb2 (patch) | |
tree | 3bef128513ce569b64788853d688179ac7562096 /run | |
parent | 24175ce2a37d6f5d9ba367f942fabce681ee9e4a (diff) |
Working ext2 filereader
As soon as I implement indirect block pointers, the resources will
hopefully work again :)
Diffstat (limited to 'run')
-rwxr-xr-x | run | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -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" } |