From 13d798e8733c453134576832d2742429efb0e2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alin=20Tr=C4=83istaru?= Date: Mon, 10 Apr 2017 17:11:58 +0300 Subject: [PATCH] Fix installing syslinux in distro dir on ext2/3/4 Executing ==> dd if=/dev/sdb1 of=/media/user/USBFLASH"/media/user/USBFLASH/multibootusb/debian/isolinux/debian-install.bs" count=1 dd: failed to open '/media/user/USBFLASH/media/user/USBFLASH/multibootusb/debian/isolinux/debian-install.bs': No such file or directory Failed to install syslinux on distro directory... --- scripts/syslinux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/syslinux.py b/scripts/syslinux.py index ff98fb1..45687c8 100644 --- a/scripts/syslinux.py +++ b/scripts/syslinux.py @@ -168,7 +168,7 @@ def syslinux_distro_dir(usb_disk, iso_link, distro): distro_syslinux_install_dir = os.path.join(install_dir, iso_linux_bin_dir.strip("/")) syslinux_path = os.path.join(multibootusb_host_dir(), "syslinux", "bin", "extlinux") + config.syslinux_version ext_cmd = syslinux_path + " --install " + distro_syslinux_install_dir - dd_cmd = 'dd if=' + usb_disk + ' ' + 'of=' + usb_mount + quote(distro_sys_install_bs) + ' count=1' + dd_cmd = 'dd if=' + usb_disk + ' ' + 'of=' + quote(distro_sys_install_bs) + ' count=1' if os.access(syslinux_path, os.X_OK) is False: subprocess.call('chmod +x ' + syslinux_path, shell=True) == 0 log ("Executing ==> " + ext_cmd)