caligula icon indicating copy to clipboard operation
caligula copied to clipboard

Allow burning a file straight from stdin

Open ifd3f opened this issue 9 months ago • 0 comments

Is your feature request related to a problem? Please describe.

It would be super neat to do something like

curl https://example.com/my-os.iso | caligula burn

Although it looks like we won't be able to get user input, we still can! Just use /dev/tty.

This would allow for all kinds of shenanigans:

  • Out of disk space on your device? Not to worry! Just curl | caligula burn
  • Want to try a new image without downloading it to a file? Not to worry! Just curl | caligula burn
  • This could be a workaround for unsupported compression formats (weirdformatcat < my-os.iso.whatever | caligula burn)

Describe the solution you'd like

  • Hash validation can be performed by the writer process
  • Implement verification phase via hashing rather than byte comparison (i.e. hash while writing to the disk, and during verification, perform a hash of the disk's bytes)
  • Make all user input come from /dev/tty and not stdin

Note that, when we implement #64, this mode would be completely incompatible with any form of multi-disk burning.

Describe alternatives you've considered

N/A

Additional context

N/A

ifd3f avatar May 24 '24 22:05 ifd3f