From 79d2637f512a115de506199f1398dc6ee5d5ebff Mon Sep 17 00:00:00 2001 From: whatever127 <46111995+whatever127@users.noreply.github.com> Date: Sat, 11 Apr 2020 20:50:37 +0200 Subject: [PATCH] Modify post-18890 fix to replace fonts instead of editing BCD --- convert.sh | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/convert.sh b/convert.sh index 7f86824..c4f7781 100755 --- a/convert.sh +++ b/convert.sh @@ -1,5 +1,5 @@ #!/bin/bash -scriptName="UUP Converter v0.5.5" +scriptName="UUP Converter v0.6.0" UUP_CONVERTER_SCRIPT=1 if [ -f `dirname $0`/convert_ve_plugin ]; then @@ -240,18 +240,6 @@ 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" @@ -564,8 +552,10 @@ wimlib-imagex optimize ISODIR/sources/install.$type echo "" if [ $build -ge 18890 ]; then - chntpw -e ISODIR/boot/bcd <<< "$bcdPatch" >/dev/null - chntpw -e ISODIR/efi/microsoft/boot/bcd <<< "$bcdPatch" >/dev/null + wimlib-imagex extract "$firstMetadata" 3 "/Windows/Boot/Fonts" \ + --no-acls --dest-dir="ISODIR/boot" >/dev/null + mv -f ISODIR/boot/Fonts/* ISODIR/boot/fonts + rm -r ISODIR/boot/Fonts fi echo -e "$infoColor""Creating ISO image...""$resetColor"