Update install.sh
This commit is contained in:
parent
ec78fa856e
commit
2eeff70fc6
1 changed files with 9 additions and 2 deletions
|
|
@ -562,8 +562,15 @@ updateImage() {
|
||||||
local path=$(find "$dir" -maxdepth 1 -type f -iname autounattend.xml | head -n 1)
|
local path=$(find "$dir" -maxdepth 1 -type f -iname autounattend.xml | head -n 1)
|
||||||
[ -n "$path" ] && cp "$asset" "$path"
|
[ -n "$path" ] && cp "$asset" "$path"
|
||||||
|
|
||||||
local loc="$dir/sources/boot.wim"
|
local src=$(find "$dir" -maxdepth 1 -type d -iname sources | head -n 1)
|
||||||
[ ! -f "$loc" ] && loc="$dir/sources/boot.esd"
|
|
||||||
|
if [ ! -d "$src" ]; then
|
||||||
|
warn "failed to locate 'sources' folder in ISO image, $FB"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
local loc=$(find "$src" -maxdepth 1 -type f -iname boot.wim | head -n 1)
|
||||||
|
[ ! -f "$loc" ] && loc=$(find "$src" -maxdepth 1 -type f -iname boot.esd | head -n 1)
|
||||||
|
|
||||||
if [ ! -f "$loc" ]; then
|
if [ ! -f "$loc" ]; then
|
||||||
warn "failed to locate 'boot.wim' or 'boot.esd' in ISO image, $FB"
|
warn "failed to locate 'boot.wim' or 'boot.esd' in ISO image, $FB"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue