From 0c8a4cf9d10ee542df7f87c578dcd41c92b48756 Mon Sep 17 00:00:00 2001 From: whatever127 Date: Thu, 2 May 2019 15:52:43 +0200 Subject: [PATCH] Fix minor virtual editions bug, fix messages not showing when booting from ISO The messages not appearing problem is fixed by forcing Windows Boot Manager to use Legacy boot mode, which does not need any fonts, which for some reason can't be loaded by it from ISO created using genisoimage. --- convert.sh | 17 ++++++++++++++++- convert_ve_plugin | 4 ++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/convert.sh b/convert.sh index 32a52ff..bc27307 100644 --- a/convert.sh +++ b/convert.sh @@ -1,5 +1,5 @@ #!/bin/bash -scriptName="UUP Converter v0.5.2" +scriptName="UUP Converter v0.5.3" UUP_CONVERTER_SCRIPT=1 if [ -f `dirname $0`/convert_ve_plugin ]; then @@ -236,6 +236,18 @@ sources/..-.*/wimprovider.dll.mui sources/..-.*/WinDlp.dll.mui sources/..-.*/winsetup.dll.mui' +bcdPatch='cd \Objects\{7619dcc9-fafe-11d9-b411-000476eba25f}\Elements +nk 250000c2 +cd 250000c2 +nv 3 Element +ed Element +8 +:00000 00 00 00 00 00 00 00 00 +s +q +y +' + infoColor="\033[1;94m" errorColor="\033[1;91m" resetColor="\033[0m" @@ -390,6 +402,9 @@ echo -e "$infoColor""Creating ISO structure...""$resetColor" wimlib-imagex apply "$firstMetadata" 1 ISODIR --no-acls 2>/dev/null errorHandler $? "Failed to create ISO structure" +chntpw -e ISODIR/boot/bcd <<< "$bcdPatch" >/dev/null +chntpw -e ISODIR/efi/microsoft/boot/bcd <<< "$bcdPatch" >/dev/null + echo "" echo -e "$infoColor""Exporting winre.wim...""$resetColor" diff --git a/convert_ve_plugin b/convert_ve_plugin index d80639e..19d15d4 100644 --- a/convert_ve_plugin +++ b/convert_ve_plugin @@ -1126,8 +1126,8 @@ s nv 1 ProductId ed ProductId $3 -nv 1 EditionId -ed EditionId +nv 1 EditionID +ed EditionID $4 cd \\ cd \Microsoft\Windows NT\CurrentVersion\DefaultProductKey2