usb_inst.sh doesn't find installed programs

Post there if you have problem when downloading the iso, or burning it.
Freso
Posts: 3
Joined: 06 Feb 2013, 18:35
Contact:

usb_inst.sh doesn't find installed programs

Postby Freso » 06 Feb 2013, 18:46

Trying to run the usb_inst.sh bash script, I'm basically unable to do anything but copy the files, since the script for some reason can't find the programs:

Code: Select all

[email protected]> sudo bash ./usb_inst.sh
usb_inst.sh: error: Program dialog not found, cannot run the semi-graphical installation program

[email protected]> which dialog
/usr/bin/dialog

Code: Select all

[email protected]> sudo bash ./usb_inst.sh writembr /dev/sdd
The device [/dev/sdd] seems to be big enough: 7568 MB.
usb_inst.sh: error: install-mbr and parted must be installed, check these programs first.

[email protected]> which install-mbr
install-mbr not found
[email protected]> which parted
/usr/sbin/parted

Code: Select all

[email protected]> sudo bash ./usb_inst.sh format /dev/sdd1
The device [/dev/sdd1] seems to be big enough: 7564 MB.
usb_inst.sh: error: mkfs.vfat not found on your system, please install dosfstools first.

[email protected]> which mkfs.vfat
/sbin/mkfs.vfat

Code: Select all

[email protected]> sudo bash ./usb_inst.sh syslinux /dev/sdd1
usb_inst.sh: error: syslinux not found on your system, please install syslinux first.

[email protected]> which syslinux
/usr/bin/syslinux


Looking around a bit on the forum, I didn't see anyone else reporting this, but I did note one other person has run into some trouble with a 64-bit system. Does the script check whether the binaries are 64- or 32-bit or something? As they just need to run the commands (I guess?), this would sound like a silly reason, but, eh.

Edit: This was tried first with 3.1.1, and then I downloaded 3.3.0 and tried again, with the same result.

gernot
Posts: 1127
Joined: 07 Apr 2010, 16:19

Re: usb_inst.sh doesn't find installed programs

Postby gernot » 06 Feb 2013, 19:09

usb_inst.sh call not the system files but the binaris in the usb_inst directory.
To do this from a ISO image the script copy the files to
TMPDIR="/var/tmp/usb_inst.tmp"

Is your /var/tmp mounted "noexec" ?

Gernot

Freso
Posts: 3
Joined: 06 Feb 2013, 18:35
Contact:

Re: usb_inst.sh doesn't find installed programs

Postby Freso » 07 Feb 2013, 10:39

Ha. Yes. It is. :) I managed to find an "old", already burned CD with I used instead.

Would it be as simple as doing

Code: Select all

TMPDIR=/tmp/usb_inst.tmp bash ./usb_inst.tmp
instead of having to remount /var/tmp with exec permissions?

gernot
Posts: 1127
Joined: 07 Apr 2010, 16:19

Re: usb_inst.sh doesn't find installed programs

Postby gernot » 07 Feb 2013, 16:22

Edit the script at the begin...

Gernot


Return to “Downloading and burning”

Who is online

Users browsing this forum: No registered users and 3 guests