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
This commit is contained in:
parent
0c8a4cf9d1
commit
979f5f2f64
10
convert.sh
10
convert.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
scriptName="UUP Converter v0.5.3"
|
scriptName="UUP Converter v0.5.4"
|
||||||
UUP_CONVERTER_SCRIPT=1
|
UUP_CONVERTER_SCRIPT=1
|
||||||
|
|
||||||
if [ -f `dirname $0`/convert_ve_plugin ]; then
|
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
|
wimlib-imagex apply "$firstMetadata" 1 ISODIR --no-acls 2>/dev/null
|
||||||
errorHandler $? "Failed to create ISO structure"
|
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 ""
|
||||||
echo -e "$infoColor""Exporting winre.wim...""$resetColor"
|
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
|
wimlib-imagex optimize ISODIR/sources/install.$type
|
||||||
echo ""
|
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"
|
echo -e "$infoColor""Creating ISO image...""$resetColor"
|
||||||
find ISODIR -exec touch {} +
|
find ISODIR -exec touch {} +
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user