commit 00ff5b91d84820f359a6540322d80e6f5b472387
Author: Dave Riches <dcr226(a)fedorapeople.org>
Date: Tue Jan 11 13:26:38 2011 +0000
added exception handling to grub_install()
multiboot-media-creator.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/multiboot-media-creator.py b/multiboot-media-creator.py
index 836cc5d..5793212 100755
--- a/multiboot-media-creator.py
+++ b/multiboot-media-creator.py
@@ -65,8 +65,10 @@ def umount_device(dev):
os.system("umount %s" % dev)
def grub_install():
- os.system("grub-install --root-directory=%s %s" % (mytemp,dev))
-
+ try:
+ os.system("grub-install --root-directory=%s %s" % (mytemp,dev))
+ except:
+ sys.exit("Unable to grub-install, check device")
def getisos(isopath,isotype):
"""getisos returns a list of isos inside a specific path
based on a given type"""
Show replies by date