projects
/
grml2usb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Sync filesystems before returning from MBR installation
[grml2usb.git]
/
grml2usb
diff --git
a/grml2usb
b/grml2usb
index
9d5c2ef
..
e324954
100755
(executable)
--- a/
grml2usb
+++ b/
grml2usb
@@
-645,6
+645,10
@@
def install_mbr(mbrtemplate, device, partition, ismirbsdmbr=True):
raise Exception("error executing dd (third run)")
del tmpf
+ # make sure we sync filesystems before returning
+ proc = subprocess.Popen(["sync"])
+ proc.wait()
+
def is_writeable(device):
"""Check if the device is writeable for the current user