mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 21:17:55 +00:00
oem-factory-reset: fix call to mount-usb --mode rw (fix #1497)
This commit is contained in:
parent
35f3b2218b
commit
cba8c4542c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user