@@ -1646,12 +1646,20 @@ $scripts = @(
|
|||||||
Remove-Item -LiteralPath "${env:TEMP}\${pkg_file}" -Force -ErrorAction 'SilentlyContinue';
|
Remove-Item -LiteralPath "${env:TEMP}\${pkg_file}" -Force -ErrorAction 'SilentlyContinue';
|
||||||
|
|
||||||
# Load viofs driver
|
# 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;
|
-Wait -PassThru;
|
||||||
|
|
||||||
# Install VirtioFS service
|
# 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' `
|
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' `
|
-StartupType 'Automatic' `
|
||||||
-DependsOn 'WinFsp.Launcher';
|
-DependsOn 'WinFsp.Launcher';
|
||||||
|
|
||||||
|
|||||||
@@ -327,6 +327,12 @@ function qemu_fill_unattend_fs {
|
|||||||
echo "Copying ${x} into \$WinPEDriver\$..." >&2
|
echo "Copying ${x} into \$WinPEDriver\$..." >&2
|
||||||
find "${destdir}/drivers/${x}/" -maxdepth 1 -type f -exec cp '{}' "${destdir}/\$WinPEDriver\$/" \; || return $?
|
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
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user