这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@fkorotkov
Copy link
Contributor

To generate new MAC address and/or serial number for a given VM.

To generate new MAC address and/or serial number for a given VM.
@fkorotkov fkorotkov requested a review from edigaryev as a code owner May 1, 2024 18:58
@fkorotkov fkorotkov enabled auto-merge (squash) May 1, 2024 18:59

#if arch(arm64)
if randomSerial {
let oldPlatform = vmConfig.platform as! Darwin
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we not assume that it's always Darwin and do a proper type check & throw an error if it's Linux?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Though about it but was too lazy and the error message will be self-explanatory. Plus help mentions macOS.

@fkorotkov fkorotkov merged commit 985db24 into main May 2, 2024
@fkorotkov fkorotkov deleted the random-mac-ecid branch May 2, 2024 14:27
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.

3 participants