mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 04:05:50 +00:00
feat: Extract XML
This commit is contained in:
parent
2de40c4cad
commit
35262485af
1 changed files with 8 additions and 0 deletions
|
|
@ -889,11 +889,19 @@ updateImage() {
|
|||
index="2"
|
||||
fi
|
||||
|
||||
local out="$TMP/extract"
|
||||
rm -rf "$out"
|
||||
mkdir -p "$out"
|
||||
|
||||
if [[ "$MANUAL" != [Yy1]* ]]; then
|
||||
|
||||
xml=$(basename "$asset")
|
||||
info "Adding $xml for automatic installation..."
|
||||
|
||||
if ! wimlib-imagex extract "$loc" "$index" "/$file" "--dest-dir=$out" > /dev/null; then
|
||||
warn "failed to extract answer file ($file) from ISO image.."
|
||||
fi
|
||||
|
||||
if ! wimlib-imagex update "$loc" "$index" --command "add $asset /$file" > /dev/null; then
|
||||
MANUAL="Y"
|
||||
warn "failed to add answer file ($xml) to ISO image, $FB"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue