Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with bootstrap_install.ps1 #1702

Closed
al-mat opened this issue Jul 27, 2021 · 2 comments
Closed

Issue with bootstrap_install.ps1 #1702

al-mat opened this issue Jul 27, 2021 · 2 comments
Assignees

Comments

@al-mat
Copy link

al-mat commented Jul 27, 2021

I've got this

PS C:\Users\alissonmatos\Downloads> ./bootstrap_install.ps1

Directory: C:\

Mode LastWriteTime Length Name


d---- 27/07/2021 20:59 builder

Directory: C:\builder\components

Mode LastWriteTime Length Name


d---- 27/07/2021 20:59 updates
d---- 27/07/2021 20:59 drivers
Failed to retrieve value for uefi-build.
Exception caught in script:
At C:\Users\alissonmatos\Downloads\bootstrap_install.ps1:257 char:3

  • $script:uefi = (Get-MetadataValue -key 'uefi-build').ToLower() -eq …

Message: You cannot call a method on a null-valued expression.
Windows build failed.

@bkatyl
Copy link
Contributor

bkatyl commented Jul 28, 2021

It looks like the script wasn't able to communicate with the metadata server. Since the error message shows a users directory, can you share if this was running in a GCE instance?
Also did you start of the build process using daisy as we populate those metadata keys in the image creation workflows?

If daisy wasn't used then you can find documentation on how to use it to invoke the build process at https://github.com/GoogleCloudPlatform/compute-image-tools/tree/master/daisy_workflows/image_build/windows#starting-a-build-workflow

@al-mat
Copy link
Author

al-mat commented Jul 29, 2021

Sorry... now I've seen my mistake. I forgot to do some parts. Thanks for the help.

@al-mat al-mat closed this as completed Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants