diff --git a/0001-rhbz1783669.patch b/0001-rhbz1783669.patch new file mode 100644 index 0000000..5364904 --- /dev/null +++ b/0001-rhbz1783669.patch @@ -0,0 +1,27 @@ +From 5bcc29f4e8fd948cfa585c62cfee6aa2161376a6 Mon Sep 17 00:00:00 2001 +From: mprahl +Date: Fri, 20 Dec 2019 11:33:51 -0500 +Subject: [PATCH] Workaround to address RHBZ#1783669 + +--- + src/woeusb | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/src/woeusb b/src/woeusb +index 3284259..61d9780 100755 +--- a/src/woeusb ++++ b/src/woeusb +@@ -1672,9 +1672,7 @@ workaround_linux_make_writeback_buffering_not_suck(){ + reset) + echo_with_color \ + yellow \ +- 'Resetting workaround to prevent 64-bit systems with big primary memory from being unresponsive during copying files.' +- echo 0 > /proc/sys/vm/dirty_background_bytes +- echo 0 > /proc/sys/vm/dirty_bytes ++ 'Not resetting workaround to prevent 64-bit systems with big primary memory from being unresponsive during copying files due to RHBZ#1783669.' + ;; + *) + printf_with_color \ +-- +2.21.0 + diff --git a/WoeUSB.spec b/WoeUSB.spec index 0c3cd1d..46b80a8 100644 --- a/WoeUSB.spec +++ b/WoeUSB.spec @@ -7,6 +7,7 @@ Summary: Windows USB installation media creator License: GPLv3+ URL: https://github.com/slacka/WoeUSB Source0: https://github.com/slacka/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Patch0: 0001-rhbz1783669.patch Requires: grub2-pc-modules BuildRequires: gcc @@ -23,7 +24,7 @@ A utility that enables you to create your own bootable Windows installation USB storage device from an existing Windows Installation disc or disk image. %prep -%autosetup +%autosetup -p1 %build # Replace the version placeholders