From 35262485af30a3f77f64fe569b80ba91bf332887 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 10 May 2024 01:47:07 +0200 Subject: [PATCH] feat: Extract XML --- src/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/install.sh b/src/install.sh index a1629d9..9cbeaea 100644 --- a/src/install.sh +++ b/src/install.sh @@ -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"