From bc7bd187a0375a4d78310a80390fea9efc3f815e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 24 Aug 2017 10:45:31 -0400 Subject: comment --- .../comment_9_eebdf852c9d73c7b11b184b7654aa78c._comment | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/forum/DiskImage_creation_does_not_work_on_my_system/comment_9_eebdf852c9d73c7b11b184b7654aa78c._comment (limited to 'doc') 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). +"""]] -- cgit v1.2.3