mbusb / multibootusb

Create multiboot live Linux on a USB disk...
http://multibootusb.org/
GNU General Public License v2.0
1.39k stars 201 forks source link

WIFISLAX support #308

Open fr44b0 opened 6 years ago

fr44b0 commented 6 years ago

Host Operating system: Ubuntu 17.10 artful The ISO I'm trying to create: wifislax64-1.1-final.iso link > http://www.downloadwireless.net/isos/wifislax64-1.1-final.iso USB disk information: Kingston Technology DataTraveler G3 - dos - FAT32 - 7,4G MultiBootUSB version: 9.1.0 LogFile: multibootusb.log After selecting Wifislax menu entry at boot i got this error: " Invalid or corrupt kernel image. boot:_" From Grub2 there's no voice for wifislax

shinji-s commented 6 years ago

14:49:39.425 root INFO Command '7z l "/home/fr44b0/Scaricati/wifislax64-1.1-final.iso" 2> /dev/null' returned non-zero exit status 2.

What do you get if you run the following command from shell? 7z l "/home/fr44b0/Scaricati/wifislax64-1.1-final.iso"

14:49:39.475 root INFO join() argument must be str or bytes, not 'bool'

You may want to fetch and try 'devel' from github.

fr44b0 commented 6 years ago

What I get from the command : 7z l "/home/fr44b0/Scaricati/wifislax64-1.1-final.iso"

https://pastebin.com/TVeufbxc

Can you please explain me what do you mean with :

"You may want to fetch and try 'devel' from github"

Thank you for your help and work, really appreciate it.

shinji-s commented 6 years ago

Unexpected end of archive

Your iso file is likely corrupted. Verify checksum of the file and download it again if ithe checksum does not match. According to https://www.wifislax.com/wifislax64-1-1-final/, the sums are:

MD5: 3249f75c52bafbadca5ca223d5443d82
SHA-1: 9a738c9613d07e3c694238a828f7735b922d3a8c

Can you please explain me what do you mean with :

'devel' branch on github has fixes that are not present in the 9.1 release. So you willl have better chance of success if you try the branch as well. What you should do is:

You should have a known-to-be-good iso file before trying though.

fr44b0 commented 6 years ago

Both check of sha-1 and md5 are correct, using the devel version of multibootusb at the selection of the iso I immediately get the 7z error. 2> /dev/null' returned non-zero exit status 2. I've tried also to redownload it, but result doesn't change. It's a 7z related problem, i've tried to decompress the iso file and recompress the iso with file roller but i get the same error. I've also find out an old WIFISLAX issue I don't know if it can be usefull to you. https://github.com/mbusb/multibootusb/issues/220

shinji-s commented 6 years ago

You are right in saying that the culprit is the 7zip. 7z.exe provided by msusb9.1 for Windows can properly extract the iso. What is the version of 7zip you have on your ubuntu installation? Can you source install newer version of 7zip? If not, you may replace 'raise' with 'pass' in the following block in scripts/_7zip.py to let mbusb ignore the error though I can't imagine the consequence of doing so.

        except Exception as e:
            gen.log(e)
            if expose_exception:
                raise
            _cmd_out = ''

In either case you"ll have to tweak, after the installation, boot/syslinux/menu/vesamenu.cfg to have livemedia= param set as described at https://docs.slackware.com/slackware:liveslak

fr44b0 commented 6 years ago

Thanks for your help. p7zip : 16.02+dfsg-6 p7zip-full : 16.02+dfsg-6 I've modified the 7zip.py script in the devel version of multibootusb and now it ignore the error. I've tried to set the livemedia=param in the vesamenu.cfg but I really don't know what i'm doing. Could you please tell me where i have to set this livemedia=param and how. Is it correct into this section of the vesamenu.cfg file?

label live menu label Wifislax64 Live Espaol menu default kernel /multibootusb/wifislax64-1.1-final/boot/vmlinuz from=multibootusb/wifislax64-1.1-final noauto append initrd=/multibootusb/wifislax64-1.1-final/boot/initrd.xz kbd=es xkb=es locale=es_ES.utf8 tz=Europe/Madrid rw

I've tried: livemedia=/dev/sdb1 livemedia=/dev/4086-3D3E livemain=/multibootusb/wifislax64-1.1-final

But all off these result in

Invalid or corrupt kernel image. boot:_

Can you help me understand where i'm wrong?

fr44b0 commented 6 years ago

This is the voice for wifislax in /multibootusb/syslinux.cfg. Isn't missing the BOOT or KERNEL option?

start wifislax64-1.1-final

LABEL wifislax64-1.1-final MENU LABEL wifislax64-1.1-final

end wifislax64-1.1-final

shinji-s commented 6 years ago

A correct option to put in the 'append' line is: livemedia=4086-3D3E:/multibootusb/wifislax64-1.1-final/wifislax64-1.1-final.iso

Isn't missing the BOOT option?

Yes it is. I have this on mine.

#start wifislax64-1.1-final
LABEL wifislax64-1.1-final
MENU LABEL wifislax64-1.1-final
BOOT /multibootusb/wifislax64-1.1-final/boot/syslinux/salix-live.bs
#end wifislax64-1.1-final

Perhaps you have _/multibootusb/wifislax64-1.1-final/iso_filelist.cfg being empty? That would cause missing BOOT line. It appears p7zip 16.02 does not work even if you ignore the error. You'll have to upgrade 7z, use Window version of mbusb or remaster the iso in a way compatible with 16.02. Once you have working 7z, pull updates from 'devel' (git pull), then you should not have to tweak boot params by yourself.

mbusb commented 6 years ago

@shinji-s Can you please try slitaz-rolling and check loopback.cfg file generated by multibootusb? It appears that linux line is not extracted by the grub.py script.

shinji-s commented 6 years ago

Will you give me a url for the iso to try?

mbusb commented 6 years ago

http://mirror.slitaz.org/iso/rolling/slitaz-rolling.iso

On Tue 3 Apr, 2018, 5:39 PM Shinji Suzuki, notifications@github.com wrote:

Will you give me a url for the iso to try?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mbusb/multibootusb/issues/308#issuecomment-378227391, or mute the thread https://github.com/notifications/unsubscribe-auth/AEC34CGNwu5GNiTFHq2SBsuENC8ysUrvks5tk2ZigaJpZM4TCeXN .

shinji-s commented 6 years ago

@mbusb Thanks for the url. Created an issue for tracking issue with salitaz-rolling.