mirror of
https://github.com/mbusb/multibootusb
synced 2024-11-18 15:25:46 +00:00
Added ESET Rescue Disk
This commit is contained in:
parent
d6e48ee13f
commit
c168792225
@ -73,6 +73,7 @@ def delete_frm_file_list():
|
|||||||
gen.log('Could not remove ldlinux.sys')
|
gen.log('Could not remove ldlinux.sys')
|
||||||
|
|
||||||
if os.path.exists(os.path.join(usb_mount, f)):
|
if os.path.exists(os.path.join(usb_mount, f)):
|
||||||
|
|
||||||
if os.path.isdir(os.path.join(usb_mount, f)):
|
if os.path.isdir(os.path.join(usb_mount, f)):
|
||||||
gen.log("Removing directory " + (os.path.join(usb_mount, f)))
|
gen.log("Removing directory " + (os.path.join(usb_mount, f)))
|
||||||
shutil.rmtree(os.path.join(usb_mount, f))
|
shutil.rmtree(os.path.join(usb_mount, f))
|
||||||
@ -81,7 +82,6 @@ def delete_frm_file_list():
|
|||||||
gen.log("Removing file " + (os.path.join(usb_mount, f)))
|
gen.log("Removing file " + (os.path.join(usb_mount, f)))
|
||||||
os.remove(os.path.join(usb_mount, f))
|
os.remove(os.path.join(usb_mount, f))
|
||||||
|
|
||||||
|
|
||||||
if os.path.exists(os.path.join(usb_mount, "multibootusb", config.uninstall_distro_dir_name, "generic.cfg")):
|
if os.path.exists(os.path.join(usb_mount, "multibootusb", config.uninstall_distro_dir_name, "generic.cfg")):
|
||||||
with open(os.path.join(usb_mount, "multibootusb", config.uninstall_distro_dir_name, "generic.cfg"), "r") as generic_cfg:
|
with open(os.path.join(usb_mount, "multibootusb", config.uninstall_distro_dir_name, "generic.cfg"), "r") as generic_cfg:
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
|
@ -49,6 +49,7 @@ def update_distro_cfg_files(iso_link, usb_disk, distro, persistence=0):
|
|||||||
'boot=casper cdrom-detect/try-usb=true floppy.allowed_drive_mask=0 ignore_uuid '
|
'boot=casper cdrom-detect/try-usb=true floppy.allowed_drive_mask=0 ignore_uuid '
|
||||||
'ignore_bootid root=UUID=' + usb_uuid + ' live-media-path=/multibootusb/'
|
'ignore_bootid root=UUID=' + usb_uuid + ' live-media-path=/multibootusb/'
|
||||||
+ iso_basename(iso_link) + '/casper', string)
|
+ iso_basename(iso_link) + '/casper', string)
|
||||||
|
string = re.sub(r'live-media=\S*', 'live-media=/dev/disk/by-uuid/' + usb_uuid , string)
|
||||||
string = re.sub(r'ui gfxboot', '#ui gfxboot', string)
|
string = re.sub(r'ui gfxboot', '#ui gfxboot', string)
|
||||||
if persistence != 0:
|
if persistence != 0:
|
||||||
string = re.sub(r'boot=casper', 'boot=casper persistent persistent-path=/multibootusb/' +
|
string = re.sub(r'boot=casper', 'boot=casper persistent persistent-path=/multibootusb/' +
|
||||||
|
Loading…
Reference in New Issue
Block a user