Also search for uefi-ntfs.img in /usr/share/windows2usb

This commit is contained in:
ValdikSS 2019-02-24 04:53:53 +03:00 committed by GitHub
parent 6bc0ae55c2
commit b0d00df519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,11 @@ function get_dev_partition_num() {
} }
function write_uefintfs() { function write_uefintfs() {
if [ -a "$dirpath/uefi-ntfs.img" ]; then
cat "$dirpath/uefi-ntfs.img" > "$1" cat "$dirpath/uefi-ntfs.img" > "$1"
elif [ -a "/usr/share/windows2usb/uefi-ntfs.img" ]; then
cat "/usr/share/windows2usb/uefi-ntfs.img" > "$1"
fi
} }
function extract_iso() { function extract_iso() {