We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de7d51a + 6145d0c commit 4c2a3a9Copy full SHA for 4c2a3a9
oracle-linux-image-tools/bin/build-image.sh
@@ -367,10 +367,9 @@ stage_kickstart() {
367
image_create() {
368
common::echo_header "Install Oracle Linux"
369
370
- # retrieve disk label -- alternatively: isoinfo -d -i
371
- local ISO_LABEL
372
- # shellcheck disable=SC2034,SC2153
373
- ISO_LABEL=$(file "${ISO_PATH}" | sed -e "s/.* '\(.*\)' .*/\1/" -e 's/ /\\x20/g')
+ # retrieve disk label
+ # shellcheck disable=SC2034
+ ISO_LABEL="${ISO_LABEL:-$(file -L "${ISO_PATH}" | sed -e "s/.* '\(.*\)' .*/\1/" -e 's/ /\\x20/g')}"
374
375
declare -ga virt_install_args
376
# Set Serial console
0 commit comments