Menu

#326 makeboot.sh executes bundled 32bit syslinux binary on my 64bit-only system

testing_clonezilla
closed-fixed
None
5
2019-07-24
2019-07-20
No

Hi,
I use Gentoo Linux and run only 64bit kernel and libs. The makeboot.sh script however attempts to run:

  A filesystem supporting Unix file mode for syslinux is required. Copying syslinux to /tmp/linux_tmp.9uaBXX
'/mnt/smartmedia/utils/linux/syslinux' -> '/tmp/linux_tmp.9uaBXX/syslinux'
Running: "/tmp/linux_tmp.9uaBXX/syslinux" -d syslinux -f -i "/dev/sdd1"

That is wrong. It should execute binaries from my $PATH and the messages should be more clear if the "-d syslinux" is pointing to the bundled 32bit binary supposed to be executed during boot or whether it also should be a copy of my system-wide syslinux.

# cat /tmp/clonezilla/Clonezilla-Live-Version 
clonezilla-live-20190707-disco-amd64
This Clonezilla live zip file was created by this command:
ocs-live-dev -n a -c -s --extra-boot-param quiet components -y 6.03 -i 20190707-disco-amd64
#

Discussion

  • Martin Mokrejs

    Martin Mokrejs - 2019-07-20

    Your bundled binary inside clonezilla-live-20190707-disco-amd64.zip :

    # file /tmp/clonezilla/utils/linux/syslinux
    /tmp/clonezilla/utils/linux/syslinux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=57f040f47c86bb0a7144b4b08522386e5cb7d146, stripped
    #
    

    My system-wide installed binary:

    # file /usr/bin/syslinux
    /usr/bin/syslinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped
    #
    
     
  • Steven Shiau

    Steven Shiau - 2019-07-21

    Thanks for you bug report. It's improved in git repository, and will be used in the next testing Clonezilla live release.

    Steven

     
  • Steven Shiau

    Steven Shiau - 2019-07-24

    Please give Clonezilla live >= 2.6.2-20 or 20190923-* a try:
    https://clonezilla.org/downloads.php
    This issue should have been fixed.
    Please let us know the results.
    Thanks.

    Steven

     
  • Martin Mokrejs

    Martin Mokrejs - 2019-07-24

    Indeed, it works! Thank you.

    # ./makeboot.sh /dev/sdc1
    This command will install MBR and syslinux/extlinux bootloader on /dev/sdc
    Clonezilla files are assumed to be on /dev/sdc1
    --------------------------------------------
    Machine: Vostro 3550:
    Model: Generic Flash Disk (scsi)
    Disk /dev/sdc: 4037MB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags: 
    
    Number  Start   End     Size    Type     File system  Flags
     1      1049kB  4037MB  4036MB  primary  fat32        boot
    
    --------------------------------------------
    Are you sure you want to continue?
    [y/n] y
    OK! Let's do it!
    --------------------------------------------
    File system of /dev/sdc1: vfat
    --------------------------------------------
    Do you want to install MBR on /dev/sdc on this machine "Vostro 3550" ?
    [y/n] y
    OK! Let's do it!
    Running: cat "/mnt/smartmedia/utils/mbr/mbr.bin" > /dev/sdc
    --------------------------------------------
    Do you want to install the syslinux boot files on /dev/sdc1 on this machine "Vostro 3550" ?
    [y/n] y
    OK! Let's do it!
    A filesystem supporting Unix file mode for syslinux is required. Copying syslinux to /tmp/linux_tmp.hiejXV
    '/mnt/smartmedia/utils/linux/x64/syslinux' -> '/tmp/linux_tmp.hiejXV/syslinux'
    Running: "/tmp/linux_tmp.hiejXV/syslinux" -d syslinux -f -i "/dev/sdc1"
    //NOTE// If your USB flash drive fails to boot (maybe buggy BIOS), try to use "syslinux -d syslinux -fs /dev/sdc1", i.e. running with "-fs".
    syslinux ran successfully in installation mode.
    Done!
    /mnt/smartmedia/utils/linux #
    
     
  • Steven Shiau

    Steven Shiau - 2019-07-24
    • status: open --> closed-fixed
    • assigned_to: Steven Shiau
     
  • Steven Shiau

    Steven Shiau - 2019-07-24

    Great. Thanks for your confirmation.

    Steven

     

Log in to post a comment.