Update install.sh

This commit is contained in:
Kroese 2024-05-24 23:30:21 +02:00 committed by GitHub
parent 8a036a2391
commit fa5b789a8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -801,8 +801,6 @@ updateImage() {
fi
fi
wimlib-imagex update "$loc" "$index" --command "delete --force --recursive $path /\$WinPEDriver\$" >/dev/null || true
local msg="Adding drivers to image..."
info "$msg" && html "$msg"
@ -817,6 +815,8 @@ updateImage() {
local dest="$drivers/$target"
mkdir -p "$dest"
wimlib-imagex update "$loc" "$index" --command "delete --force --recursive /$target" >/dev/null || true
addDriver "$DETECTED" "$drivers" "$target" "viofs"
addDriver "$DETECTED" "$drivers" "$target" "sriov"
addDriver "$DETECTED" "$drivers" "$target" "qxldod"
@ -831,7 +831,7 @@ updateImage() {
addDriver "$DETECTED" "$drivers" "$target" "vioserial"
addDriver "$DETECTED" "$drivers" "$target" "qemupciserial"
if ! wimlib-imagex update "$loc" "$index" --command "add $dest /" >/dev/null; then
if ! wimlib-imagex update "$loc" "$index" --command "add $dest /$target" >/dev/null; then
warn "Failed to add drivers to image!"
fi