From cba8c4542cb4d0806f21be2e0a68c40777d6776e Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Thu, 7 Sep 2023 16:27:14 -0400 Subject: [PATCH] oem-factory-reset: fix call to mount-usb --mode rw (fix #1497) --- initrd/bin/oem-factory-reset | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initrd/bin/oem-factory-reset b/initrd/bin/oem-factory-reset index eacbe8f8..73158347 100755 --- a/initrd/bin/oem-factory-reset +++ b/initrd/bin/oem-factory-reset @@ -589,7 +589,7 @@ if [ "$prompt_output" == "y" \ # mount USB over /media only if not already mounted if ! grep -q /media /proc/mounts ; then # mount USB in rw - if ! mount-usb -mode rw 2>/tmp/error; then + if ! mount-usb --mode rw 2>/tmp/error; then ERROR=$(tail -n 1 /tmp/error | fold -s) whiptail_error_die "Unable to mount USB on /media:\n\n${ERROR}" fi