From b0d00df519deb29503bc8f5f48d4c5b63c7613c8 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 24 Feb 2019 04:53:53 +0300 Subject: [PATCH] Also search for uefi-ntfs.img in /usr/share/windows2usb --- windows2usb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/windows2usb b/windows2usb index 9609fe8..248e001 100755 --- a/windows2usb +++ b/windows2usb @@ -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() {