From f3427d6e37a1ebec78adac57f69d5efad0170d66 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 19 Apr 2020 23:58:09 +0200 Subject: Clean ext2 implementation :) --- run | 35 ++++++----------------------------- 1 file changed, 6 insertions(+), 29 deletions(-) (limited to 'run') diff --git a/run b/run index 7dff314..9857d22 100755 --- a/run +++ b/run @@ -119,41 +119,18 @@ make_build() { cp ./src/bootloader/grub.cfg ./iso/boot/grub/ cp ./build/user.bin ./iso/user.bin cp ./build/font.bin ./iso/font.bin - grub-mkrescue -o ./build/melvix.iso ./iso/ - dd if=/dev/zero of=./build/ext2_hda.img bs=1k count=100000 >/dev/zero - mkfs -t ext2 -i 1024 -b 1024 -F ./build/ext2_hda.img >/dev/zero - fdisk ./build/ext2_hda.img <./mnt/test + genext2fs -d ./mnt/ -U -N 4096 -b 65536 ./build/disk.img || exit 1 rm -r mnt/ printf "Build finshed successfully!\n\n" } make_test() { - qemu_with_flags -cdrom ./build/melvix.iso -hda ./build/ext2_hda.img -hdb ./build/ext2_hdb.img -hdd ./build/ext2_hdd.img -boot d + qemu_with_flags -cdrom ./build/melvix.iso -hda ./build/disk.img -boot d } make_debug() { -- cgit v1.2.3