Skip to content

prepare_guest_template.sh fails when there are multiple xs-tools iso's in ISO_DIR#10

Closed
ramielrowe wants to merge 1 commit intoopenstack:masterfrom
ramielrowe:master
Closed

prepare_guest_template.sh fails when there are multiple xs-tools iso's in ISO_DIR#10
ramielrowe wants to merge 1 commit intoopenstack:masterfrom
ramielrowe:master

Conversation

@ramielrowe
Copy link
Copy Markdown
Contributor

In the case of two iso's ('xs-tools-6.0.2.iso' and 'xs-tools-6.0.2-1111.iso'), TOOLS_ISO gets set to 'xs-tools-6.0.2-1111.iso xs-tools-6.0.2.iso' This causes 'mount -o loop xs-tools-6.0.2-1111.iso xs-tools-6.0.2.iso $TMP_DIR' to get called, which fails as it's meant to be called with only one file. This fix simply sets TOOLS_ISO to the first iso that ls returns.

…s in ISO_DIR

In the case of two iso's ('xs-tools-6.0.2.iso' and 'xs-tools-6.0.2-1111.iso'), TOOLS_ISO gets set to 'xs-tools-6.0.2-1111.iso xs-tools-6.0.2.iso' This causes 'mount -o loop xs-tools-6.0.2-1111.iso xs-tools-6.0.2.iso $TMP_DIR' to get called, which fails as it's meant to be called with only one file. This fix simply sets TOOLS_ISO to the first iso that ls returns.

Change-Id: Id4d883e2b1e33b233c9ee907016b4ce117c28021
@ramielrowe
Copy link
Copy Markdown
Contributor Author

Submitted to review.openstack.org.

@ramielrowe ramielrowe closed this Sep 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant