Bug 814174 - livecd-iso-to disk throws /usr/bin/livecd-iso-to-disk: line 1092: [: too many arguments error
Summary: livecd-iso-to disk throws /usr/bin/livecd-iso-to-disk: line 1092: [: too many...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: livecd-tools
Version: 16
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-19 10:36 UTC by Abhishek Singh
Modified: 2012-05-08 04:32 UTC (History)
7 users (show)

Fixed In Version: livecd-tools-17.11-1.fc17
Clone Of:
Environment:
Last Closed: 2012-05-08 04:32:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Abhishek Singh 2012-04-19 10:36:36 UTC
Description of problem:
I'm using livecd-tool package (version 16.11-1.fc16.x86_64) on a Fedora 16 machine. Whenever I use livecd-iso-to-disk with --format --msdos --reset-mbr parameters, I get a "/usr/bin/livecd-iso-to-disk: line 1092: [: too many arguments". But the script continues to work despite the error. The script exits with an exit code of "1".

Version-Release number of selected component (if applicable):
16.11-1

How reproducible:
Every time you run the script with --format --msdos --reset-mbr parameters

Steps to Reproduce:
1. Run livecd-iso-to-disk command with --format --msdos --reset-mbr parameters
  
Actual results:
Throws a "/usr/bin/livecd-iso-to-disk: line 1092: [: too many arguments" and exits with an exit code of 1.

Expected results:
Should not throw that error and should exit with an exit code of 0.

Additional info:
I'm using this on the http://xs-dev.laptop.org/xs/OLPC-School-Server-0.7-i386.iso ISO file and also on the ISO created by myself using pungi.

Comment 1 Brian Lane 2012-04-19 17:23:44 UTC
What is the full commandline that you used? The line in question is:

if [ -e $TGTMNT/$(basename "$SRC") ]; then

I can't reproduce it here.

Comment 2 Abhishek Singh 2012-04-20 03:15:57 UTC
The full commandline I used is:

livecd-iso-to-disk --format --msdos --reset-mbr /sandbox/nexs/OLPC\ School\ Server-0.7-i386.iso /dev/sdb1

The iso in question "OLPC\ School\ Server-0.7-i386.iso" is placed insided /sandbox/nexs directory and "/dev/sdb1" is the single partition on my USB stick of partition type Linux and formatted as vfat. The same problem happens even if it is formatted as ext4.

Comment 3 Abhishek Singh 2012-04-23 06:22:30 UTC
Found the cause of the error. It is because of the blank spaces in the file name of the source ISO file. When I renamed the file and removed spaces, it did work well.

Probably we need to take care for files with blank spaces in its name in the livecd-iso-to-disk script.

Comment 4 Fedora Update System 2012-04-24 22:14:11 UTC
livecd-tools-17.9-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/livecd-tools-17.9-1.fc17

Comment 5 Fedora Update System 2012-04-25 18:08:17 UTC
livecd-tools-16.13-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/livecd-tools-16.13-1.fc16

Comment 6 Fedora Update System 2012-04-26 19:25:23 UTC
Package livecd-tools-17.9-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing livecd-tools-17.9-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-6645/livecd-tools-17.9-1.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-04-26 22:09:58 UTC
livecd-tools-17.10-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/livecd-tools-17.10-1.fc17

Comment 8 Fedora Update System 2012-05-03 23:18:29 UTC
livecd-tools-16.15-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/livecd-tools-16.15-1.fc16

Comment 9 Fedora Update System 2012-05-03 23:34:21 UTC
livecd-tools-17.11-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/livecd-tools-17.11-1.fc17

Comment 10 Fedora Update System 2012-05-08 04:32:30 UTC
livecd-tools-17.11-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.