From 3d7140b3fc27f7b754db5488e48baaa37e4582fd Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Wed, 14 Jun 2023 19:28:16 +0300 Subject: [PATCH] Makefile: Handle disk image mounting --- .gitignore | 3 ++- Makefile | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index dbf4bfa..7033f9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.elf *.o -*.img \ No newline at end of file +*.img +mnt/ \ No newline at end of file diff --git a/Makefile b/Makefile index 821bdab..4237984 100644 --- a/Makefile +++ b/Makefile @@ -14,3 +14,10 @@ kernel-i386.elf: kernel.o start32.o vga.o qemu: kernel-i386.elf qemu-system-i386 -kernel kernel-i386.elf + +mount: koalemos.img mnt/ + sudo mount -o loop,offset=1048576,umask=177,dmask=222 koalemos.img mnt/ +umount: + sudo umount mnt +mnt/: + mkdir mnt