Merge pull request #1498 from tlaurion/oem-factory-reset_fix-mount-usb

oem-factory-reset: fix call to mount-usb --mode rw
This commit is contained in:
tlaurion 2023-09-07 16:29:12 -04:00 committed by GitHub
commit 97bb0a82cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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