summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/DiskImage_creation_does_not_work_on_my_system/comment_9_eebdf852c9d73c7b11b184b7654aa78c._comment16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/forum/DiskImage_creation_does_not_work_on_my_system/comment_9_eebdf852c9d73c7b11b184b7654aa78c._comment b/doc/forum/DiskImage_creation_does_not_work_on_my_system/comment_9_eebdf852c9d73c7b11b184b7654aa78c._comment
new file mode 100644
index 00000000..1b1f1e64
--- /dev/null
+++ b/doc/forum/DiskImage_creation_does_not_work_on_my_system/comment_9_eebdf852c9d73c7b11b184b7654aa78c._comment
@@ -0,0 +1,16 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 9"""
+ date="2017-08-24T14:39:05Z"
+ content="""
+The `DiskImage` data type could be expanded to support different output
+formats.
+
+Or, a type class could be used, so eg:
+
+ imageBuilt :: DiskImage d => d -> (FilePath -> Chroot) -> TableType -> [PartSpec ()] -> RevertableProperty (HasInfo + DebianLike) Linux
+
+The type class would just need a function to convert from the raw disk
+image to the desired file format. Then anyone could add whatever disk image
+formats they want (which can probably shade into containers in some cases).
+"""]]