I am trying to add vioscsi drivers to the install phase of my windows 10 installer for fully automatted installation.
I have succeeded in injecting the files like this
Code: Select all
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 1 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.sys /Windows/System32/drivers/vioscsi.sys"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 1 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.pdb /Windows/System32/drivers/vioscsi.pdb"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 2 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.sys /Windows/System32/drivers/vioscsi.sys"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 2 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.pdb /Windows/System32/drivers/vioscsi.pdb"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 1 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.inf /Windows/INF/vioscsi.inf"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 1 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.cat /Windows/INF/vioscsi.cat"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 2 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.inf /Windows/INF/vioscsi.inf"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 2 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.cat /Windows/INF/vioscsi.cat"
Code: Select all
x:\Windows\INF\vioscsi.inf
x:\Windows\INF\vioscsi.cat
x:\Windows\System32\drivers\vioscsi.pdb
x:\Windows\System32\drivers\vioscsi.sys
if I try
pnputil /add-driver X:\Windows\INF\vioscsi.inf /install
drvload X:\Windows\INF\vioscsi.inf
both commands fail with file not found errors
If I load up the virtio ISO and run
pnputil /add-driver D:\vioscsi\w10\amd64\vioscsi.inf /install
drvload D:\vioscsi\w10\amd64\vioscsi.inf
both commands succeed and now I can see my drive in diskpart
Is there a better way to inject these drivers into boot.wim ?
thanks !