Skip to content

Instantly share code, notes, and snippets.

@limitedeternity
Created March 12, 2020 08:42
Show Gist options
  • Save limitedeternity/013355f98a3bad24530b8f13567bfb73 to your computer and use it in GitHub Desktop.
Save limitedeternity/013355f98a3bad24530b8f13567bfb73 to your computer and use it in GitHub Desktop.
Scripts for TinyCore image modification on MacOS
#/usr/bin/env bash
cd tmp/extract
find -L . | fakeroot cpio -o -H newc | gzip -11 > ../tmpcoregz && fakeroot mv ../tmpcoregz ../iso/boot/core.gz
mkisofs -l -J -R -V Core -no-emul-boot -boot-load-size 4 -boot-info-table -iso-level 4 -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -eltorito-alt-boot -o ../Core.iso ../iso
#/usr/bin/env bash
mkdir -p tmp/iso
mkdir -p tmp/mnt
mkdir -p tmp/extract
hdiutil attach Core.iso -mountroot tmp/mnt
cp -a tmp/mnt/Core/ tmp/iso
hdiutil detach tmp/mnt/Core
cd tmp/extract
zcat < ../iso/boot/core.gz | fakeroot cpio -uid
@limitedeternity
Copy link
Author

  • brew install cdrtools

  • brew install fakeroot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment