factory-utils: Prevent double-free looping device in umount

When using "mount -o loop", the loop device will free on unmount automatically,
so "umount -d" is not required.  Doing that (-d) may cause race condition issue.

BUG=chromium-os:24975
TEST=Manually:
     ls /tmp  # see how many files are there before running scripts
     extract_firmware_updater.sh -i chromiumos_image.bin
     make_factory_pacakge --factory FACTORY.bin --release RECOVERY.bin \
       --hwid HWID_UPDATER.sh --diskimg OUTPUT.bin
     ls /tmp  # no new temporary folders left

Change-Id: I13f7957c3bad6955a4fc85ef63416d72ede1f1c3
Reviewed-on: https://gerrit.chromium.org/gerrit/16185
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
1 file changed
tree: be027e48c1fe934c3322bf9aedc8027c8f825207
  1. cros_bundle/
  2. factory_setup/
  3. .gitignore