feat: Inherit source compression when exporting install image (#2021)

This commit is contained in:
Kroese
2026-07-29 16:58:57 +02:00
committed by GitHub
parent e94a3c203d
commit 45deb0c638
+1 -3
View File
@@ -477,7 +477,6 @@ extractESD() {
} }
count=$(awk '/Image Count:/ {print $3}' <<< "$info") count=$(awk '/Image Count:/ {print $3}' <<< "$info")
if [[ ! "$count" =~ ^[0-9]+$ ]]; then if [[ ! "$count" =~ ^[0-9]+$ ]]; then
error "Cannot read the image count in ESD file!" error "Cannot read the image count in ESD file!"
return 1 return 1
@@ -566,7 +565,6 @@ extractESD() {
info "$msg..." && html "$msg..." info "$msg..." && html "$msg..."
edition=$(getCatalog "$version" "name") edition=$(getCatalog "$version" "name")
if [ -z "$edition" ]; then if [ -z "$edition" ]; then
error "Invalid VERSION specified, value \"$version\" is not recognized!" error "Invalid VERSION specified, value \"$version\" is not recognized!"
return 1 return 1
@@ -582,7 +580,7 @@ extractESD() {
/run/progress.sh "$installWim" "$installSize" "$msg ([P])..." & /run/progress.sh "$installWim" "$installSize" "$msg ([P])..." &
wimlib-imagex export "$iso" "$index" "$installWim" --compress=LZMS --chunk-size 128K --quiet || { wimlib-imagex export "$iso" "$index" "$installWim" --quiet || {
local ret=$? local ret=$?
fKill "progress.sh" fKill "progress.sh"
error "Addition of $index to the $desc image failed ($ret)" error "Addition of $index to the $desc image failed ($ret)"