diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-09-14 01:42:29 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-09-14 01:45:55 -0700 |
commit | 46bb1d3157f9ad575c83a4bfa1e32b0d21bc8546 (patch) | |
tree | 28918f653d7cf970d33d5592047ef663289aca40 /gen_iso | |
parent | ded2b24ce28f4a9df75ce40117f0f06f09574369 (diff) | |
download | mu-46bb1d3157f9ad575c83a4bfa1e32b0d21bc8546.tar.gz |
5650 - support a second OS: soso
https://github.com/ozkl/soso + Much smaller than Linux; builds instantly + Supports graphics - No network support - Doesn't work on a cloud server (yet?)
Diffstat (limited to 'gen_iso')
-rwxr-xr-x | gen_iso | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/gen_iso b/gen_iso deleted file mode 100755 index a1435210..00000000 --- a/gen_iso +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh -# Build one or more .subx files into an ELF binary, and package it up into a -# bootable ISO image. -# -# Must be run on Linux. -# -# Dependencies: -# apt install build-essential flex bison wget libelf-dev libssl-dev xorriso -# -# Based on http://minimal.linux-bg.org (GPLv3) - -set -e - -if [ $# -eq 0 ] -then - echo "Usage: `basename $0` file.subx ..." - exit 1 -fi - -echo "=== constructing initramfs out of SubX binary" -./ntranslate $* -mv a.elf init -chmod +x init -rm -rf tmp/isoimage -mkdir -p tmp/isoimage/boot -echo init | cpio -R root:root -H newc -o | xz -9 --check=none > tmp/isoimage/boot/rootfs.xz - -if [ ! -d kernel ] -then - echo "=== cloning kernel" - git clone https://github.com/akkartik/kernel -fi - -echo "=== building kernel" -( cd kernel - make bzImage -j $(grep ^processor /proc/cpuinfo | wc -l) -) -cp kernel/arch/x86/boot/bzImage tmp/isoimage/boot/kernel.xz - -echo "=== downloading syslinux" -test -f tmp/syslinux-6.03.tar.xz || wget https://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.xz -P tmp -echo "=== unpacking syslinux" -tar xf tmp/syslinux-*.tar.xz -C tmp - -mkdir -p tmp/isoimage/boot/syslinux -cp syslinux.cfg \ - tmp/syslinux-*/bios/core/isolinux.bin \ - tmp/syslinux-*/bios/com32/elflink/ldlinux/ldlinux.c32 \ - tmp/isoimage/boot/syslinux - -echo "=== generating ISO" -# 'hybrid' ISO can also be used on non-optical media such as a disk or USB stick -xorriso -as mkisofs \ - -isohybrid-mbr tmp/syslinux-*/bios/mbr/isohdpfx.bin \ - -c boot/syslinux/boot.cat \ - -b boot/syslinux/isolinux.bin \ - -no-emul-boot \ - -boot-load-size 4 \ - -boot-info-table \ - tmp/isoimage -o mu.iso |