Patch the SuperGrub2 disk image
Now you can reconfigure your SuperGrub without needing to compile it.
$ ln --symbolic super_grub2_disk_hybrid_2.04rc1s1-beta4.iso orig.iso
$ ./patcher.sh --restore --patch *.hax --reupload thumbdrive.dev
D: restore: ‘orig.iso’ -> ‘custom.iso’
D: gonna write 'iso9660-kill-primvoldesc.hax' into 'custom.iso' at offset 32768
D: gonna write 'search_same_device.hax' into 'custom.iso' at offset 3450880
D: reupload 'custom.iso' onto 'thumbdrive.dev': 15946+0 records in
15946+0 records out
16328704 bytes (16 MB) copied, 5.60342 s, 2.9 MB/s
:TODO: explain available commands and the patch file format
- Needs more/better tests and docs.
GPL-3.0