Add a failure message to the script
This commit is contained in:
parent
f0cd5e408d
commit
4ed469b578
1 changed files with 3 additions and 1 deletions
|
@ -29,9 +29,11 @@ func GenerateVBIOSDumper(vbios_path string) {
|
||||||
"mkdir -p \"%s\"\n",
|
"mkdir -p \"%s\"\n",
|
||||||
"echo Attempting to enable reading from rom\n",
|
"echo Attempting to enable reading from rom\n",
|
||||||
"echo 1 | sudo tee %s\n",
|
"echo 1 | sudo tee %s\n",
|
||||||
|
"echo\n",
|
||||||
"echo Attempting to dump VBIOS\n",
|
"echo Attempting to dump VBIOS\n",
|
||||||
"sudo bash -c \"cat %s\" > %s/%s/vfio_card.rom\n",
|
"sudo bash -c \"cat %s\" > %s/%s/vfio_card.rom || echo \"Failed to dump the VBIOS, in most cases a reboot can fix this.\nOr you have to bind the gpu to the vfio-pci driver, reboot the machine and try dumping again\"\n",
|
||||||
"file \"%s/%s/vfio_card.rom\"\n",
|
"file \"%s/%s/vfio_card.rom\"\n",
|
||||||
|
"echo\n",
|
||||||
"echo Attempting to disable reading from rom \\(cleanup\\)\n",
|
"echo Attempting to disable reading from rom \\(cleanup\\)\n",
|
||||||
"echo 0 | sudo tee %s\n",
|
"echo 0 | sudo tee %s\n",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue