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
1 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,11 @@ function get_dev_partition_num() {
}
function write_uefintfs() {
cat "$dirpath/uefi-ntfs.img" > "$1"
if [ -a "$dirpath/uefi-ntfs.img" ]; then
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() {