projects
/
grml2usb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid the "file is read only, overwrite anyway (y/n) ?"
[grml2usb.git]
/
grml2usb
diff --git
a/grml2usb
b/grml2usb
index
46a6674
..
8ffe71f
100755
(executable)
--- a/
grml2usb
+++ b/
grml2usb
@@
-1110,6
+1110,11
@@
def copy_bootloader_files(iso_mount, target):
bootsplash = search_file(ffile, iso_mount)
exec_rsync(bootsplash, syslinux_target + ffile)
bootsplash = search_file(ffile, iso_mount)
exec_rsync(bootsplash, syslinux_target + ffile)
+ # avoid the "file is read only, overwrite anyway (y/n) ?" question
+ # of mtools by syslinux ("mmove -D o -D O s:/ldlinux.sys $target_file")
+ if os.path.isfile(syslinux_target + 'ldlinux.sys'):
+ os.unlink(syslinux_target + 'ldlinux.sys')
+
if not search_file('default.cfg', iso_mount + '/boot/isolinux/'):
logging.critical("Fatal: file default.cfg could not be found.")
logging.critical("Note: this grml2usb version requires an ISO generated by grml-live >=0.9.24 ...")
if not search_file('default.cfg', iso_mount + '/boot/isolinux/'):
logging.critical("Fatal: file default.cfg could not be found.")
logging.critical("Note: this grml2usb version requires an ISO generated by grml-live >=0.9.24 ...")