Jeremy Davis's picture

Or you should be able to dd the iso staight to the SD card? That's how you convert the PVE ISO (also based on Debian Squeeze) to a USB stick...

In the case of PVE it's a simple case of (from the PVE Wiki):

dd if=pve-cd.iso of=/dev/XYZ bs=1M

And I can confirm 100% that it works. I haven't tried it with TKL but I have absolutely no reason to think that it wouldn't work...

If you wanted to make it a single script solution (rather than manually renaming), you could create a quick wrapper script for TKLPatch that accepts the same inputs (ie ISO and patch), hands the info to TKLPatch to work it's magic then just renames the resulting ISO...

Or easier still - hack TKLPatch so it simply writes an IMG file rather than an ISO (literally 3 letters to change...)

PS just a quick word of warning if you use dd to write the img to SD card: It doesn't care what it is copying or where... Be very careful that you get your inputs (if) and outputs (of) right... If you get your /dev/XYZ wrong it may merrily overwirte your OS without a care in the world...