Make the test image smaller and align the partition properly

This commit is contained in:
mintsuki 2020-09-08 14:02:28 +02:00
parent 97394ff601
commit c53122516a
1 changed files with 3 additions and 3 deletions

View File

@ -30,10 +30,10 @@ limine-install: src/limine.bin limine-install.c
test.img: test.img:
rm -f test.img rm -f test.img
dd if=/dev/zero bs=1M count=0 seek=4096 of=test.img dd if=/dev/zero bs=1M count=0 seek=64 of=test.img
ifeq ($(OS), Linux) ifeq ($(OS), Linux)
parted -s test.img mklabel msdos parted -s test.img mklabel msdos
parted -s test.img mkpart primary 0% 100% parted -s test.img mkpart primary 2048s 100%
else ifeq ($(OS), FreeBSD) else ifeq ($(OS), FreeBSD)
sudo mdconfig -a -t vnode -f test.img -u md9 sudo mdconfig -a -t vnode -f test.img -u md9
sudo gpart create -s mbr md9 sudo gpart create -s mbr md9
@ -43,7 +43,7 @@ endif
echfs-test: limine-install test.img echfs-test: limine-install test.img
$(MAKE) -C test $(MAKE) -C test
echfs-utils -m -p0 test.img quick-format 32768 echfs-utils -m -p0 test.img quick-format 512
echfs-utils -m -p0 test.img import test/test.elf boot/test.elf echfs-utils -m -p0 test.img import test/test.elf boot/test.elf
echfs-utils -m -p0 test.img import test/limine.cfg limine.cfg echfs-utils -m -p0 test.img import test/limine.cfg limine.cfg
./limine-install test.img ./limine-install test.img