diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-12-07 16:06:54 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-12-07 18:06:17 -0800 |
commit | 25636f70d0f116ef2f842e9ca25dfb781071cd2d (patch) | |
tree | b7fba53d852ff98545653408d640944cfb0a3e74 /gen_linux_iso | |
parent | 72f278ae6bb52e17dbdeac0fce41a794e8dfd0d1 (diff) | |
download | mu-25636f70d0f116ef2f842e9ca25dfb781071cd2d.tar.gz |
5798
Fuck, 'tmp' is a generic name, and running `clean` deleted some files I'd stashed away.
Diffstat (limited to 'gen_linux_iso')
-rwxr-xr-x | gen_linux_iso | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gen_linux_iso b/gen_linux_iso index c2c4499f..f6769ec9 100755 --- a/gen_linux_iso +++ b/gen_linux_iso @@ -23,9 +23,9 @@ mv a.elf init chmod +x init echo "=== constructing initramfs out of SubX binary" -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 +rm -rf tmp_linux/isoimage +mkdir -p tmp_linux/isoimage/boot +echo init | cpio -R root:root -H newc -o | xz -9 --check=none > tmp_linux/isoimage/boot/rootfs.xz if [ ! -d kernel.linux ] then @@ -37,26 +37,26 @@ echo "=== building linux kernel" ( cd kernel.linux make bzImage -j $(grep ^processor /proc/cpuinfo | wc -l) ) -cp *.linux/arch/x86/boot/bzImage tmp/isoimage/boot/kernel.xz +cp *.linux/arch/x86/boot/bzImage tmp_linux/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 +test -f tmp_linux/syslinux-6.03.tar.xz || wget https://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.xz -P tmp_linux echo "=== unpacking syslinux" -tar xf tmp/syslinux-*.tar.xz -C tmp +tar xf tmp_linux/syslinux-*.tar.xz -C tmp_linux -mkdir -p tmp/isoimage/boot/syslinux +mkdir -p tmp_linux/isoimage/boot/syslinux cp syslinux.cfg \ - tmp/syslinux-*/bios/core/isolinux.bin \ - tmp/syslinux-*/bios/com32/elflink/ldlinux/ldlinux.c32 \ - tmp/isoimage/boot/syslinux + tmp_linux/syslinux-*/bios/core/isolinux.bin \ + tmp_linux/syslinux-*/bios/com32/elflink/ldlinux/ldlinux.c32 \ + tmp_linux/isoimage/boot/syslinux -echo "=== generating mu-linux.iso" +echo "=== generating mu_linux.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 \ + -isohybrid-mbr tmp_linux/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_linux.iso + tmp_linux/isoimage -o mu_linux.iso |