mkefidisk: Unmount after partitioning
authorDarren Hart <dvhart@linux.intel.com>
Thu, 25 Apr 2013 21:27:29 +0000 (14:27 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 May 2013 16:41:55 +0000 (17:41 +0100)
commitf2e9ab2abfaa353544468f328fecda6047db1178
treeddd4f62b26c423fc185a59359d8fbf3c9ae4280d
parentff529ae4d4568bd4d4694a4e3943768b242d8209
mkefidisk: Unmount after partitioning

Some automounters are rather overzealous and like to mount things
immediately after partitioning. This can happen if the disk is being
reused and the partitions align exactly with the existing partitions
which have already been formatted. Move the unmount code into a function
and call it before and after partitioning.

(From OE-Core rev: f1854e458e5e77806b1fc837033500fa91272261)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/mkefidisk.sh