Commit a0463db3 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

windows: Consider Autounattend.xml as answer file

When searching a windows image for the presence of an answer file,
make sure that Autounattend.xml is also considered as a valid answer
parent 798d4779
......@@ -479,7 +479,7 @@ get_unattend() {
# Workaround to search for $target/Unattend.xml in an case insensitive way.
exists=$(find "$target"/ -maxdepth 1 -iname unattend.xml)
exists=$(find "$target"/ -maxdepth 1 -iregex ".*/\(auto\)?unattend\.xml" )
if [ $(wc -l <<< "$exists") -gt 1 ]; then
log_error "Found multiple Unattend.xml files in the image:" $exists
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment