oem-factory-reset: fix call to mount-usb --mode rw (fix #1497)

This commit is contained in:
Thierry Laurion 2023-09-07 16:27:14 -04:00
parent 35f3b2218b
commit cba8c4542c
No known key found for this signature in database
GPG Key ID: E7B4A71658E36A93

View File

@ -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