]> git.mdlowis.com Git - proto/albase.git/commitdiff
Added script for creating an iso of the base system
authorMike Lowis <mike.lowis@gentex.com>
Wed, 21 Sep 2016 16:28:42 +0000 (12:28 -0400)
committerMike Lowis <mike.lowis@gentex.com>
Wed, 21 Sep 2016 16:28:42 +0000 (12:28 -0400)
Makefile
buildiso.sh [new file with mode: 0755]
iso9660/isolinux/isolinux.bin [new file with mode: 0644]
iso9660/isolinux/isolinux.cfg [new file with mode: 0644]
iso9660/isolinux/ldlinux.c32 [new file with mode: 0755]

index 48de21bd518b454a01db0510806f881ad6d6d51c..c5f506a3021830cc473474d31bb70ff6314c263e 100644 (file)
--- 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 (executable)
index 0000000..d32035b
--- /dev/null
@@ -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 (file)
index 0000000..644c751
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 (file)
index 0000000..9a2ab36
--- /dev/null
@@ -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 (executable)
index 0000000..02c9c43
Binary files /dev/null and b/iso9660/isolinux/ldlinux.c32 differ