mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
fix: Force secure boot on old installations
This commit is contained in:
parent
61fb7801bc
commit
deb134336f
1 changed files with 2 additions and 2 deletions
|
|
@ -1100,9 +1100,9 @@ bootWindows() {
|
|||
creation=$(<"$STORAGE/windows.ver")
|
||||
fi
|
||||
|
||||
# Fall back to secure boot on installations created prior to v2.14
|
||||
# Force secure boot on installations created prior to v2.14
|
||||
if (( $(echo "$creation < $minimal" | bc -l) )); then
|
||||
if [[ "${BOOT_MODE,,}" == "windows" ]] && [ -f "$STORAGE/windows.rom" ]; then
|
||||
if [[ "${BOOT_MODE,,}" == "windows" ]]; then
|
||||
BOOT_MODE="windows_secure"
|
||||
if [ -f "$STORAGE/windows.rom" ] && [ ! -f "$STORAGE/$BOOT_MODE.rom" ]; then
|
||||
mv "$STORAGE/windows.rom" "$STORAGE/$BOOT_MODE.rom"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue