On 2012-10-16, at 15:30, Sven Van Caekenberghe <[email protected]> wrote: > On 16 Oct 2012, at 15:17, Camillo Bruni <[email protected]> wrote: >> On 2012-10-16, at 15:08, Sven Van Caekenberghe <[email protected]> wrote: >>> I understand that it would be nice eventually to have images saved like >>> that automatically. >>> >>> It is still a pity that the VM has to change for that ;-) >>> >>> But as far as I understood, the first 512 bytes are skipped today as well, >>> so if you (or any program) does a binary edit of the image header, it would >>> work, no ? >> >> exactly :) I tried it and it works out of the box... just that the header is >> lost on image-save so far... > > Then maybe you should share the secret ? > > It would not be more than a couple of linux commands, would it ;-)
I vim'ed the start of the file to include #!/usr/bin/env cogVM -headless and manually padded it ti 512bytes, so no magic so far :P
