Skip to content

Commit

Permalink
src/winusb: trap_exit: No need to call sync as umount, grub-install a…
Browse files Browse the repository at this point in the history
…lready does it

Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Jun 8, 2017
1 parent 39b3e2b commit b598e55
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -928,12 +928,6 @@ trap_exit(){
fi
fi

if [ "${current_state}" != "pre-init" ] \
&& [ "${current_state}" != "enter-init" ]; then
echo_with_color green "Synchronizing cached writes to persistent storage..."
sync
fi

if \
util_is_parameter_set_and_not_empty\
target_device; then
Expand Down

0 comments on commit b598e55

Please sign in to comment.