We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 387a208 commit b74ac16Copy full SHA for b74ac16
public/Install-LSUpdate.ps1
@@ -136,8 +136,15 @@
136
}
137
} elseif ($PackageToProcess.RebootType -eq 0) {
138
'NONE'
139
+ } elseif ($PackageToProcess.RebootType -eq 1) {
140
+ # RebootType 1 updates should force a reboot on their own, interrupting LSUClient anyway,
141
+ # but this can lead to race conditions (how fast does the reboot happen, killing LSUClient before this point?)
142
+ # or maybe the reboot doesn't happen for some reason so we still communicate that it's needed. See issue #94.
143
+ 'REBOOT_MANDATORY'
144
} elseif ($PackageToProcess.RebootType -eq 3) {
145
'REBOOT_SUGGESTED'
146
+ } elseif ($PackageToProcess.RebootType -eq 4) {
147
+ 'SHUTDOWN'
148
} elseif ($PackageToProcess.RebootType -eq 5) {
149
'REBOOT_MANDATORY'
150
0 commit comments