Bug 446472 - livecd-iso-to-disk fails when mounting ISO in path with spaces.
Summary: livecd-iso-to-disk fails when mounting ISO in path with spaces.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: livecd-tools
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 450680 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-14 18:22 UTC by Peter de Kraker
Modified: 2008-07-02 06:33 UTC (History)
3 users (show)

Fixed In Version: 017.1-1.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-02 06:33:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Peter de Kraker 2008-05-14 18:22:18 UTC
Description of problem:
livecd-iso-to-disk
Mounting of ISO for copying to USB stick fails when the ISO is located in a path
containing spaces.

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


How reproducible:


Steps to Reproduce:
1. Put the ISO and the script in a dir with spaces in it's path:
"~/Downloads/These are spaces/"
2. Run the script so it will copy the iso to a usbdisk
3.
  
Actual results:

Mounting the ISO fails and the script stops.

Expected results:
ISO gets mounted.

Additional info:
Problem was solved by editing the mounting line by adding "" around $ISO.
Original line 209: mount -o loop,ro $ISO $CDMNT || exitclean
Altered line 209:  mount -o loop,ro "$ISO" $CDMNT || exitclean

I am quite a newbie to bash scripting, but maybe it could elegantlier(?) be
fixed by changing line 171 where the variable is declared.
Original line 171: ISO=$(readlink -f "$1") 
Altered line 171:  ISO="$(readlink -f "$1")" 

In any case, the solution should result in making it possible to mount dir's
with spaces in it.

Comment 1 Jeremy Katz 2008-05-27 19:38:26 UTC
Fixed in git

Comment 2 Jeremy Katz 2008-06-10 15:47:05 UTC
*** Bug 450680 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2008-06-16 15:14:29 UTC
livecd-tools-017.1-1.fc9 has been submitted as an update for Fedora 9

Comment 4 Fedora Update System 2008-07-02 06:33:47 UTC
livecd-tools-017.1-1.fc9 has been pushed to the Fedora 9 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.