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

Update get device serial logic #280

Merged

Conversation

shrikant1407
Copy link
Contributor

Update get device serial logic

KiranSukhavasi
KiranSukhavasi previously approved these changes Mar 14, 2024
@KiranSukhavasi KiranSukhavasi merged commit e724f52 into fido-device-onboard:master Mar 14, 2024
2 checks passed
@@ -103,6 +103,7 @@ RETRY=false # Error Recovery disabled
Option to get device serial from system BIOS table:
GET_DEV_SERIAL=true # get device serial enabled
GET_DEV_SERIAL=false # get device serial disabled (default)
NOTE: linux-client required elevated privileges to get device serial from system BIOS table. Use 'sudo' to execute.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is there a sudden need to use sudo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dmidecode -s system-serial-number is a linux command and it requires permissions to display system details.
Sudo is required to get a serial number from BIOS system. If sudo is not provided then it will take the default 'abcdef' serial number

@v-vasavi
Copy link

Why are we using sudo now?

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

Successfully merging this pull request may close these issues.

4 participants