Revision 84bc469c image_creator/main.py
b/image_creator/main.py | ||
---|---|---|
224 | 224 |
return 0 |
225 | 225 |
|
226 | 226 |
if options.sysprep: |
227 |
err_msg = "Unable to apply the system preparation tasks." |
|
228 |
if not image.mounted: |
|
229 |
raise FatalError("%s Couldn't mount the media." % err_msg) |
|
230 |
elif image.mounted_ro: |
|
231 |
raise FatalError("%s Couldn't mount the media read-write." |
|
232 |
% err_msg) |
|
227 | 233 |
image.os.do_sysprep() |
228 | 234 |
|
229 | 235 |
metadata = image.os.meta |
Also available in: Unified diff