Makefile: Handle disk image mounting

This commit is contained in:
Jarkko Toivanen 2023-06-14 19:28:16 +03:00
parent 3b24a64a92
commit 3d7140b3fc
Signed by: jt
GPG key ID: 9151B109B73ECAD5
2 changed files with 9 additions and 1 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
*.elf
*.o
*.img
*.img
mnt/

View file

@ -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