-
Notifications
You must be signed in to change notification settings - Fork 35
feat: Add fix for BSOD in Windows 11 24H2 when Bitlocker is enabled #728
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
Conversation
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ksimon1 - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
@@ -245,20 +245,36 @@ data: | |||
</AutoLogon> | |||
<FirstLogonCommands> | |||
<SynchronousCommand wcm:action="add"> | |||
<CommandLine>bcdedit /set device partition=C:</CommandLine> | |||
<CommandLine>PowerShell -ExecutionPolicy Bypass -NoProfile F:\post-update.ps1</CommandLine> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: DRY up duplicate script block in release and template files
Extract the shared post-update.ps1
injection into a common include to simplify future updates.
Suggested implementation:
<FirstLogonCommands>
<!--#include virtual="post-update-command.xml" -->
<SynchronousCommand wcm:action="add">
<CommandLine>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f</CommandLine>
<RequiresUserInput>false</RequiresUserInput>
<Order>2</Order>
<Description>Set AutoLogonCount to 0</Description>
- Create a new file named
post-update-command.xml
in the same directory with the following content:
<SynchronousCommand wcm:action="add">
<CommandLine>PowerShell -ExecutionPolicy Bypass -NoProfile F:\post-update.ps1</CommandLine>
<Order>1</Order>
</SynchronousCommand>
- If you use a different templating system (e.g., Helm, ytt, kustomize), adjust the include syntax accordingly (e.g.,
{{ include "post-update-command" }}
for Helm). - Apply the same include in any other files (such as release files) that previously duplicated this block.
Nice job, and thanks for your persistence with this!
|
Not sure I like the wording of "official fix", since this needs to be fixed within Windows afterall, but it's a viable workaround. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix, ksimon1 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -245,20 +245,36 @@ data: | |||
</AutoLogon> | |||
<FirstLogonCommands> | |||
<SynchronousCommand wcm:action="add"> | |||
<CommandLine>bcdedit /set device partition=C:</CommandLine> | |||
<CommandLine>PowerShell -ExecutionPolicy Bypass -NoProfile F:\post-update.ps1</CommandLine> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, I preferred to enumerate all drives for the post-update script, instead of hardcoding F:. F: means that you exactly know that Windows has only one drive C:, the second drive D: is a Windows ISO, etc...
/hold cancel |
https://learn.microsoft.com/en-us/answers/questions/1843393/windows-11-24h2-26100-1150-sysprep-generalize-brea?source=docs This should be workaround for win11 bsod caused by bitlocker Signed-off-by: Karel Simon <ksimon@redhat.com>
/lgtm |
What this PR does / why we need it:
feat: Add fix for BSOD in Windows 11 24H2 when Bitlocker is enabled
https://learn.microsoft.com/en-us/answers/questions/1843393/windows-11-24h2-26100-1150-sysprep-generalize-brea?source=docs
This should be workaround for win11 bsod caused by bitlocker
Release note: