1
0
Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
2026-06-03 22:13:08 +02:00
parent 09cb10af73
commit b09d3b16e2
2 changed files with 24 additions and 10 deletions
@@ -1646,12 +1646,20 @@ $scripts = @(
Remove-Item -LiteralPath "${env:TEMP}\${pkg_file}" -Force -ErrorAction 'SilentlyContinue';
# Load viofs driver
Start-Process "PnpUtil.exe" -ArgumentList "/add-driver `"${env:SystemDrive}\Drivers\viofs\viofs.inf`" /install" `
# Start-Process "PnpUtil.exe" -ArgumentList "/add-driver `"${env:SystemDrive}\Drivers\viofs\viofs.inf`" /install" `
# -Wait -PassThru;
Start-Process "PnpUtil.exe" -ArgumentList "/add-driver `"${env:WINDIR}\ConfigSetRoot\drivers\viofs\viofs.inf`" /install" `
-Wait -PassThru;
# Install VirtioFS service
#New-Service -Name VirtioFsSvc -DisplayName 'Virtio FS Service' `
# -BinaryPathName "${env:SystemDrive}\drivers\viofs\virtiofs.exe" `
# -StartupType 'Automatic' `
# -DependsOn 'WinFsp.Launcher';
New-Service -Name VirtioFsSvc -DisplayName 'Virtio FS Service' `
-BinaryPathName "${env:SystemDrive}\Drivers\viofs\virtiofs.exe" `
-BinaryPathName "${env:WINDIR}\ConfigSetRoot\drivers\viofs\virtiofs.exe" `
-StartupType 'Automatic' `
-DependsOn 'WinFsp.Launcher';
+6
View File
@@ -327,6 +327,12 @@ function qemu_fill_unattend_fs {
echo "Copying ${x} into \$WinPEDriver\$..." >&2
find "${destdir}/drivers/${x}/" -maxdepth 1 -type f -exec cp '{}' "${destdir}/\$WinPEDriver\$/" \; || return $?
}
# Create an additional copy of viofs
#[[ "${x}" == "viofs" ]] && {
# mkdir -p "${destdir}/\$OEM\$/\$1/drivers" || return $?
# cp -rf "${destdir}/drivers/${x}" "${destdir}/\$OEM\$/\$1/drivers/" || return $?
#}
done
}