Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions oracle-linux-image-tools/bin/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,9 @@ stage_kickstart() {
image_create() {
common::echo_header "Install Oracle Linux"

# retrieve disk label -- alternatively: isoinfo -d -i
local ISO_LABEL
# shellcheck disable=SC2034,SC2153
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')}"

declare -ga virt_install_args
# Set Serial console
Expand Down