OSDeploy / OSD

OSD Shared Functions
MIT License
148 stars 61 forks source link

HPIA driver install fails #171

Open StevenVBeek opened 1 week ago

StevenVBeek commented 1 week ago

Describe the bug

When $Global:MyOSDCloud.HPIADrivers = $true is specified, the drivers will be installed during the setupcomplete phase using the following command:

Invoke-HPIA -Category Drivers -Action Install -NoninteractiveMode -ReportsFolder C:\OSDCloud\HP\HPIA -HPIAInstallPath C:\OSDCloud\HP\HPIA.

We are experiencing an issue on one specific model where a driver fails to install during this phase. The installation seems to hang, and the logs return a 3020 exit code. Unfortunately, the setupcomplete (invoke-hpia) process continues to run, so the script doesn't stop even though the underlying process has already returned an exit code. See screenshots.

However, it is possible to manually trigger the install.cmd after setupcomplete has failed. That will work.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Setupcomplete.log image

C:\OSDCloud\HP\HPIA\20240923-0808.log image

Driver install log. image

Desktop (please complete the following information):

@gwblok any ideas?

gwblok commented 1 week ago

You have a few options

  1. Disable a BIOS setting that enables that feature
  2. Disable that model from running HPIA in your OSD Start up script
  3. If you can easily repo in the full os on that model, contact HP, as it would be an issue with their softpaq.

Additional Details

  1. BIOS Setting: image

This is something you should have bookmarked; https://h10032.www1.hp.com/ctg/Manual/c06696065.pdf

2: Disable specific Model via PowerShell If Statement on the Variable:

image
  1. Repo in Full OS then contact HP Support, then Bug These guys on Twitter: https://x.com/dan_felman https://x.com/Geodesicz
gwblok commented 1 week ago

So you're also saying, that even when it exits a 3020, it's not continuing the process, it's just done? That log looks like it finished HPIA with exit code 3020, and at that point, rest of the process should continue, is that not happening?

StevenVBeek commented 1 week ago

So you're also saying, that even when it exits a 3020, it's not continuing the process, it's just done? That log looks like it finished HPIA with exit code 3020, and at that point, rest of the process should continue, is that not happening?

Correct. It will hang for the rest of the time...

gwblok commented 1 week ago

@StevenVBeek Ok, I'd suggest those 3 options above, as a work around.

I will consider looking into a method to create a timeout for HPIA, like at the 1 hour mark, just kill it. But honestly, no idea when I'd get time to work on that.