Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for creating raw disk images #12

Open
raphaelcohn opened this issue Jan 13, 2015 · 0 comments
Open

Add support for creating raw disk images #12

raphaelcohn opened this issue Jan 13, 2015 · 0 comments

Comments

@raphaelcohn
Copy link
Owner

This is a big job

  • Are we creating partitions or entire disks? In the latter case, we need to support
    • BIOS boot sectors (MBRs)
    • Hybrid MBRs
    • Various UEFI friendly formats
    • And plain partitions
  • Which of the raw disk formats do we support?
    • Raw is easy
    • The others are hypervisor specific; we'd need good tooling to help us (the best is QEMU)
  • Which file systems?
    • ext3 / 4 is probably a must
    • as is FAT / exFAT / VFAT
    • how do we handle extended file permissions?
  • We need to manage loop back mounts, which are notorious for creating horrible re-entrancy problems
    • ie being able to run again and again, and effectively unmounting when we crash

Nearly all the tooling to do this effectively is Linux-based (eg kpartx).

Lastly, is the 'swaddling' approach the right way to do this? Arguably, yes, but many of the steps involved in building files suitable for such disk images are going to want to write directly to the mount - it's a lot easier - rather than writing to body / skeleton folders first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant