From 979f5f2f6430674f37b5a1b85f335d8e17280e5a Mon Sep 17 00:00:00 2001 From: whatever127 Date: Thu, 2 May 2019 17:28:15 +0200 Subject: [PATCH] Patch BCD only for builds 18890 and later The problem of no messages being shown is a bug of build 18890, not a problem of the creation process --- convert.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/convert.sh b/convert.sh index bc27307..9248f3a 100644 --- a/convert.sh +++ b/convert.sh @@ -1,5 +1,5 @@ #!/bin/bash -scriptName="UUP Converter v0.5.3" +scriptName="UUP Converter v0.5.4" UUP_CONVERTER_SCRIPT=1 if [ -f `dirname $0`/convert_ve_plugin ]; then @@ -402,9 +402,6 @@ 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" @@ -548,6 +545,11 @@ echo -e "$infoColor""Optimizing install.$type...""$resetColor" 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 +fi + echo -e "$infoColor""Creating ISO image...""$resetColor" find ISODIR -exec touch {} +