From 69d08dcb4580f8e544464bf54432ab07a7f58fc6 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 25 Apr 2020 23:53:19 +0200 Subject: Small cleanup and formatting --- run | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'run') diff --git a/run b/run index c0efa1b..b181689 100755 --- a/run +++ b/run @@ -105,6 +105,14 @@ make_build() { cp ./src/bootloader/grub.cfg ./iso/boot/grub/ grub-mkrescue -o ./build/melvix.iso ./iso/ + # Check ISO + if grub-file --is-x86-multiboot2 ./build/kernel.bin; then + echo "Multiboot confirmed" + else + echo "Kernel is corrupted!" + exit 1 + fi + # Create disk image make_genext2fs mkdir ./mnt/ -- cgit v1.2.3