Makefile: Handle disk image mounting
This commit is contained in:
parent
3b24a64a92
commit
3d7140b3fc
2 changed files with 9 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
*.elf
|
||||
*.o
|
||||
*.img
|
||||
*.img
|
||||
mnt/
|
7
Makefile
7
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
|
||||
|
|
Loading…
Reference in a new issue