From: Mike Lowis Date: Wed, 21 Sep 2016 16:28:42 +0000 (-0400) Subject: Added script for creating an iso of the base system X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=a27d216bcd874c4d46d6a0bf24ac2914314af791;p=proto%2Falbase.git Added script for creating an iso of the base system --- diff --git a/Makefile b/Makefile index 48de21bd..c5f506a3 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ clean: kernel-clean @echo cleaning @$(RM) $(BUILDDIR)/dummy $(ECLEAN) @$(RM) -r $(BUILDDIR)/include - @$(RM) stage1.tar.xz + @$(RM) albase.iso stage1.tar.xz iso9660/isolinux/vmlinuz iso9660/isolinux/initrd.img # load dependency files if they exist -include $(DEPS) diff --git a/buildiso.sh b/buildiso.sh new file mode 100755 index 00000000..d32035be --- /dev/null +++ b/buildiso.sh @@ -0,0 +1,13 @@ +#!/bin/sh +export ROOT=$PWD/build/ +export ISO_FS=$PWD/iso9660/ +export ISO_IMAGE=$PWD/albase.iso + +# Copy the kernel to the ISO folder +cp $ROOT/boot/vmlinuz $ISO_FS/isolinux/vmlinuz +# Copy the base files into an initrd.img +find $ROOT | grep -v '^build/obj' | cpio --owner root:root --quiet -o -H newc | gzip -9 > $ISO_FS/isolinux/initrd.img +# Delete the old image if it exists +rm -f $ISO_IMAGE +# Build the new image +mkisofs -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -l -input-charset default -V albase -A "albase" -o $ISO_IMAGE $ISO_FS diff --git a/iso9660/isolinux/isolinux.bin b/iso9660/isolinux/isolinux.bin new file mode 100644 index 00000000..644c7510 Binary files /dev/null and b/iso9660/isolinux/isolinux.bin differ diff --git a/iso9660/isolinux/isolinux.cfg b/iso9660/isolinux/isolinux.cfg new file mode 100644 index 00000000..9a2ab364 --- /dev/null +++ b/iso9660/isolinux/isolinux.cfg @@ -0,0 +1,4 @@ +default stali +label stali + kernel vmlinuz + append initrd=initrd.img quiet diff --git a/iso9660/isolinux/ldlinux.c32 b/iso9660/isolinux/ldlinux.c32 new file mode 100755 index 00000000..02c9c436 Binary files /dev/null and b/iso9660/isolinux/ldlinux.c32 differ