Menu

Bug in makeboot.sh script when dmidecode binary missing

2018-08-17
2018-12-31
  • Clemmitt Sigler

    Clemmitt Sigler - 2018-08-17

    Hello all,

    This is the first time I've prepared a bootable Clonezilla Live USB
    flash memory stick. I ran tuxboot and it seemed to install
    successfully. But all I got was a "grub> " prompt, no boot-up.

    I went back and ran "sudo bash ./makeboot.sh /dev/sdxn" by hand and got this error:

    "./makeboot.sh: line 290: dev_model_shown: unbound variable"

    The problem is there is no installed dmidecode program on my system
    used to create the boot stick. Here's a unified diff of my hack:
    ====== CUT HERE ======
    --- clonezilla-live-2.5.6-22-i686_makeboot.sh.orig_bad 2017-02-07
    15:17:20.000000000 -0500
    +++ clonezilla-live-2.5.6-22-i686_makeboot.sh.edited_good 2018-08-17
    14:25:12.000000000 -0400
    @@ -286,6 +286,8 @@
    else
    dev_model_shown="$machine_name"
    fi
    +else

    • dev_model_shown="Unknown product name"
      fi
      on_this_machine="on this machine \"$dev_model_shown\""

    ====== CUT HERE ======

    HTH :^) And thankyou* for Clonezilla!

    Blessings.

    --
    Clemmitt Sigler

     

    Last edit: Clemmitt Sigler 2018-08-18
  • Steven Shiau

    Steven Shiau - 2018-08-19

    Thanks for this bug report. It's fixed in drbl 2.27.7 and will be used in the next testing Clonezilla live.

    Steven

     
  • Richard Arnett

    Richard Arnett - 2018-12-13

    Dying here with the same error To make your USB flash drive bootable, first change the working dir, e.g. "cd /media/usb/utils/linux", then run "bash makeboot.sh /dev/sdd1" (replace /dev/sdd1 with your USB flash drive device name), {{{"./makeboot.sh: line 290: dev_model_shown: unbound variable".

    FINALLY got makeboot.sh to go after pulling back out of all my file manager windows and terminal windows and used -U "UUID#" Suddenly it worked?

    =====OUTPUT=====

    dubfactor@dubtop:/media/dubfactor/492F-0DF0/utils/linux$ sudo bash makeboot.sh /dev/sda1
    This command will install MBR and syslinux/extlinux bootloader on /dev/sda
    Clonezilla files are assumed to be on /dev/sda1


    Machine: HP Stream Laptop 14-ax0XX:
    Model: SanDisk Cruzer Dial (scsi)
    Disk /dev/sda: 31.5GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags:

    Number Start End Size Type File system Flags
    1 16.4kB 31.5GB 31.5GB primary fat32 boot, lba


    Are you sure you want to continue?
    [y/n]
    ===========
    ubuntu 18.04 LTS

     

    Last edit: Richard Arnett 2018-12-13
  • Steven Shiau

    Steven Shiau - 2018-12-31

    Sorry, I do not understand that. Could you please describe more where went wrong with makeboot.sh on Ubuntu 18.04?
    Thanks.

    Steven

     

Log in to post a comment.

MongoDB Logo MongoDB