From f25845a7656d161a29f182a9a907132deab6ba1c Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Sun, 24 Apr 2022 18:55:40 +0000 Subject: [PATCH] add img.sh --- img.sh | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 img.sh diff --git a/img.sh b/img.sh new file mode 100755 index 0000000..9660ad1 --- /dev/null +++ b/img.sh @@ -0,0 +1,70 @@ +#!/bin/sh -e +./initrd.sh +dd if=/dev/zero of=build/iglunix.img bs=1M count=1 +dd if=/dev/zero of=build/iglunix.img.1 bs=1M count=512 +mkfs.vfat -n IGLUNIX build/iglunix.img.1 +mount build/iglunix.img.1 /mnt + +cp -r build/chroot/boot/* /mnt +# uncomment to use limine for UEFI booting aswell +# cp build/chroot/usr/share/limine/BOOTX64.EFI /mnt/efi/boot/bootx64.efi +cp build/chroot/usr/share/limine/limine.sys /mnt + +cat > /mnt/limine.cfg <