mirror of
https://github.com/mbusb/multibootusb
synced 2024-11-01 15:40:16 +00:00
Added Alt Linux.
This commit is contained in:
parent
5aaa28c4b2
commit
acde57f600
@ -114,6 +114,8 @@ def distro(iso_cfg_ext_dir, iso_link):
|
||||
return "alpine"
|
||||
elif re.search(r'http://support.kaspersky.com', string, re.I):
|
||||
return "kaspersky"
|
||||
elif re.search(r'ALT Linux', string, re.I):
|
||||
return "alt-linux"
|
||||
|
||||
distro = detect_iso_from_file_list(iso_link)
|
||||
if distro:
|
||||
|
@ -56,9 +56,9 @@ def install_distro():
|
||||
print("Extracting iso to " + usb_mount)
|
||||
iso_extract_full(config.iso_link, usb_mount)
|
||||
elif config.distro == "trinity-rescue":
|
||||
iso.iso_extract_file(config.iso_link, usb_mount, 'trk3')
|
||||
iso.iso_extract_file(config.iso_link, usb_mount, '*trk3')
|
||||
elif config.distro == "ipfire":
|
||||
iso.iso_extract_file(config.iso_link, usb_mount, '.tlz')
|
||||
iso.iso_extract_file(config.iso_link, usb_mount, '*.tlz')
|
||||
iso.iso_extract_file(config.iso_link, usb_mount, 'distro.img')
|
||||
iso.iso_extract_file(config.iso_link, install_dir, 'boot')
|
||||
elif config.distro == "zenwalk":
|
||||
@ -71,6 +71,9 @@ def install_distro():
|
||||
copy_iso(config.iso_link, install_dir)
|
||||
elif config.distro == 'sgrubd2':
|
||||
copy_iso(config.iso_link, install_dir)
|
||||
elif config.distro == 'alt-linux':
|
||||
iso.iso_extract_file(config.iso_link, install_dir, '-xr!*rescue')
|
||||
iso.iso_extract_file(config.iso_link, config.usb_mount, 'rescue')
|
||||
elif config.distro == "generic":
|
||||
with open(os.path.join(install_dir, "generic.cfg"), "w") as f:
|
||||
f.write(os.path.join(isolinux_bin_dir(config.iso_link), "generic") + ".bs")
|
||||
|
@ -185,6 +185,8 @@ def update_distro_cfg_files(iso_link, usb_disk, distro, persistence=0):
|
||||
elif distro == "salix-live":
|
||||
string = re.sub(r'iso_path', '/multibootusb/' + iso_basename(iso_link) + '/' + iso_name(iso_link),
|
||||
string)
|
||||
elif distro == 'alt-linux':
|
||||
string = re.sub(r':cdrom', ':disk', string)
|
||||
|
||||
config_file = open(cfg_file, "w")
|
||||
config_file.write(string)
|
||||
|
Loading…
Reference in New Issue
Block a user