Created
March 12, 2020 08:42
-
-
Save limitedeternity/013355f98a3bad24530b8f13567bfb73 to your computer and use it in GitHub Desktop.
Scripts for TinyCore image modification on MacOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brew install cdrtools
brew install fakeroot