Red Hat Bugzilla – Bug 814174
livecd-iso-to disk throws /usr/bin/livecd-iso-to-disk: line 1092: [: too many arguments error
Last modified: 2012-05-08 00:32:30 EDT
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):
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
Throws a "/usr/bin/livecd-iso-to-disk: line 1092: [: too many arguments" and exits with an exit code of 1.
Should not throw that error and should exit with an exit code of 0.
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.
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.
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.
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.
livecd-tools-17.9-1.fc17 has been submitted as an update for Fedora 17.
livecd-tools-16.13-1.fc16 has been submitted as an update for Fedora 16.
* 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:
then log in and leave karma (feedback).
livecd-tools-17.10-1.fc17 has been submitted as an update for Fedora 17.
livecd-tools-16.15-1.fc16 has been submitted as an update for Fedora 16.
livecd-tools-17.11-1.fc17 has been submitted as an update for Fedora 17.
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.