commit 4a9dc49f1546e3f6c4f173f8e194c749da119ade
Author: Dave Riches <dcr226(a)fedorapeople.org>
Date: Tue Jan 11 00:35:16 2011 +0000
fixed -s / --source
multiboot-media-creator.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/multiboot-media-creator.py b/multiboot-media-creator.py
index 12b2cc7..3e69ac1 100755
--- a/multiboot-media-creator.py
+++ b/multiboot-media-creator.py
@@ -80,11 +80,11 @@ based on a given type"""
print i+" is live"
os.system("umount %s &>/dev/null" % i)
if info==isotype:
- isos.append(os.path.basename(i))
+ isos.append(i)
return isos
def makedirs(iso,filesys):
- BN=iso.strip(".iso")
+ BN=os.path.basename(iso.strip(".iso"))
os.makedirs(os.path.join(mytemp, BN,"boot"))
os.makedirs(os.path.join(mytemp, BN,"CHECKSUM"))
os.makedirs(os.path.join(mytemp, BN,"tmp"))
@@ -129,7 +129,7 @@ def build_filesystem():
shutil.copy2(os.path.join(tree_path,
"isolinux/vmlinuz"),os.path.join(mytemp, BN,"boot/"))
shutil.copy2(os.path.join(tree_path,
"isolinux/initrd.img"),os.path.join(mytemp, BN,"boot/"))
shutil.copy2(os.path.join(tree_path,
"images/install.img"),os.path.join(mytemp, BN,"images/"))
- shutil.copy2(os.path.join(path, i),os.path.join(mytemp, BN))
+ shutil.copy2(i,os.path.join(mytemp, BN))
umount_iso(i)
except:
print "No dvd isos found"
@@ -165,7 +165,7 @@ def doit(device):
build_filesystem()
create_grub()
grub_install()
- umount_device()
+ umount_device(dev)
if options.justdoit==True:
doit(dev)
Show replies by date