Ticket #818 (assigned defect)

Opened 4 months ago

Last modified 3 months ago

Should search mbr.bin in /usr/lib/syslinux/bios/ rather than in /usr/lib/syslinux/

Reported by: pauld Owned by: lmacken
Priority: major Milestone: __unclassified__
Component: fixed_in_git Version:
Keywords: Cc:
Blocked By: Blocking:

Description

With the following made package on Arch Linux: https://aur.archlinux.org/packages/liveusb-creator-git/

I get the following error: Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/liveusb/gui.py", line 513, in begin

elif not self.live.mbr_matches_syslinux_bin():

File "/usr/lib/python2.7/site-packages/liveusb/creator.py", line 882, in mbr_matches_syslinux_bin

mbr_bin = open(self._get_mbr_bin(), 'rb')

TypeError?: coercing to Unicode: need string or buffer, NoneType? found [root@brebis ~]#

and I believe the cause is: that /usr/lib/python2.7/site-packages/liveusb/creator.py function _get_mbr_bin search for mbr.bin in /usr/lib/syslinux/mbr.bin or /usr/share/syslinux/mbr.bin but it is in /usr/lib/syslinux/bios/mbr.bin

See the function:

def _get_mbr_bin(self):

mbr = None for mbr_bin in ('/usr/lib/syslinux/mbr.bin',

'/usr/share/syslinux/mbr.bin'):

if os.path.exists(mbr_bin):

mbr = mbr_bin

return mbr

as found on line 869 of https://git.fedorahosted.org/cgit/liveusb-creator.git/tree/liveusb/creator.py

My version of syslinux is: [paul@brebis ~]$ pacman -Qi syslinux Name : syslinux Version : 6.02-8 Description : Collection of boot loaders that boot from FAT, ext2/3/4 and

btrfs filesystems, from CDs and via PXE

Architecture : i686 URL : http://syslinux.zytor.com/ Licenses : GPL2 Groups : None Provides : None Depends On : perl glibc Optional Deps : perl-passwd-md5: For md5pass

perl-digest-sha1: For sha1pass mtools: For mkdiskimage and syslinux support [installed] gptfdisk: For GPT support util-linux: For isohybrid [installed] efibootmgr: For EFI support dosfstools: For EFI support [installed]

Required By : liveusb-creator-git Optional For : None Conflicts With : None Replaces : None Installed Size : 3322.00 KiB Packager : Tobias Powalowski <tpowa@…> Build Date : Fri Nov 29 02:57:24 2013 Install Date : Wed Dec 18 11:25:38 2013 Install Reason : Explicitly installed Install Script : Yes Validated By : Signature

which I believe is latest released version.

[paul@brebis ~]$ pacman -Ql syslinux | grep mbr.bin syslinux /usr/lib/syslinux/bios/altmbr.bin syslinux /usr/lib/syslinux/bios/gptmbr.bin syslinux /usr/lib/syslinux/bios/mbr.bin [paul@brebis ~]$

Change History

comment:1 Changed 3 months ago by lmacken

  • Owner set to lmacken
  • Component changed from linux to fixed_in_git
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.