imgcreate/errors.py | 2 ++ imgcreate/live.py | 3 +++ 2 files changed, 5 insertions(+)
New commits: commit 2ef4083a8c1adea520dc22bc43ae4ceb65dc85de Author: Jeremy Katz katzj@redhat.com Date: Mon Jul 20 21:26:23 2009 -0400
Make live image a hybrid
Use isohybrid if available so that images can be dd'd to a usb stick. Note that there's still some initrd changes required for this to be fully functional
diff --git a/imgcreate/live.py b/imgcreate/live.py index a4914e0..b98f7b3 100644 --- a/imgcreate/live.py +++ b/imgcreate/live.py @@ -248,6 +248,9 @@ class LiveImageCreatorBase(LoopImageCreator): if subprocess.call(args) != 0: raise CreatorError("ISO creation failed!")
+ if os.path.exists("/usr/bin/isohybrid"): + subprocess.call(["/usr/bin/isohybrid", iso]) + self.__implant_md5sum(iso)
def __implant_md5sum(self, iso):
commit 733f9ce7b96ed492e4b974b089fa647db569e957 Author: Jeremy Katz katzj@redhat.com Date: Thu Jul 9 13:44:12 2009 -0400
Include new error definition which I apparently didn't commit
diff --git a/imgcreate/errors.py b/imgcreate/errors.py index a29b841..800dc3b 100644 --- a/imgcreate/errors.py +++ b/imgcreate/errors.py @@ -52,3 +52,5 @@ class SnapshotError(CreatorError): pass class SquashfsError(CreatorError): pass +class ResizeError(CreatorError): + pass