Descriptioninstaller: fix the "umount: XXX not mounted" error message during postinst
When cleaning loop devices, it may be not always mounted.
This CL makes it allowing an extra parameter to specify any additional
steps to be performed before releasing a loop device.
BUG=chromium-os:9278
TEST=Build an USB image with this change, and then /usr/sbin/chromeos-install
Before: Seeing "umount: /dev/loop2: not mounted" and
"umount: /dev/loop3: not mounted" in output messages
After: No error message. Also verified "sudo losetup -a" does not leave
any resources mounted.
Change-Id: I10dfa08b037bb11bd821754f32a7a39c155fe445
Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=8bb0de1
Patch Set 1 #
Total comments: 2
Patch Set 2 : Refine param semantic #
Total comments: 2
Patch Set 3 : change FLAGS_TRUE compare from '=' to '-eq' #Patch Set 4 : add sync for losetup -d after mkfs.ext3 #Messages
Total messages: 5 (0 generated)
|