X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=e32495426199f5abc5f9e7b07ea41c34fa77e429;hp=9d5c2ef6a9293670c8e13d34df313a4029219c2e;hb=7a6e10df1c335b447ed9e60e2cc1226a42b5f5c8;hpb=1fe44d6eb925578552821dd1c281ecb8e694dfe3 diff --git a/grml2usb b/grml2usb index 9d5c2ef..e324954 100755 --- 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